summaryrefslogtreecommitdiff
path: root/go/internal/command/fallback
Commit message (Collapse)AuthorAgeFilesLines
* Remove feature flags and the fallback commandNick Thomas2019-09-202-141/+0
|
* Add Executable struct181-migrate-gitlab-shell-checks-fallbackPatrick Bajao2019-08-022-28/+41
| | | | | | | | | | This struct is responsible for determining the name and root dir of the executable. The `RootDir` property will be used to find the config. The `Name` property will be used to determine what `Command` and `CommandArgs` to be built.
* Support different CommandArgs typePatrick Bajao2019-07-312-6/+6
| | | | | | | | `CommandArgs` has been renamed to `Shell`. An interface has been added that includes `Executable()` and `Arguments()` method. The `BaseArgs` implement this methods and should be embeeded in each type.
* Support falling back to ruby version of checkersPatrick Bajao2019-07-292-8/+31
| | | | | | | | | | | | | | Rename the ruby scripts to have `-ruby` suffix and add a symlink for both to `./gitlab-shell`. The executable name will be used to determine how args will be parsed. For now, we only parse the arguments for gitlab-shell commands. If the executable is `gitlab-shell-authorized-keys-check` or `gitlab-shell-authorized-principals-check`, it'll always fallback to the ruby version. Ruby specs test the ruby script, the fallback from go to ruby and go implementation of both (still pending).
* Pass readWriter to Command constructorIgor Drozdov2019-05-202-6/+4
|
* Pass the root directory into the fallback commandNick Thomas2019-04-122-6/+92
|
* Provide go implementation for 2fa_recovery_codes commandIgor2019-03-211-2/+2
|
* Wrap Stderr & Stdout in a reporter structBob Van Landuyt2019-03-151-1/+3
| | | | | The reporter struct can be used for passing around and reporting to the io.Writer of choice.
* Allow enabling gitlab-shell "discover"-featureBob Van Landuyt2019-01-151-0/+19
This adds the possibility to enable features for GitLab shell. The first feature being recognized is "Discover": It's the command that is executed when running `ssh git@gitlab.example.com` and is called without a command. The gitlab key id or username is already parsed from the command line arguments. Currently we only support communicating with GitLab-rails using unix sockets. So features will not be enabled if the GitLab-url is using a different protocol. The url for this read from the config yaml. Pending ruby-specs have been added for the gitlab-shell command. Refactor to have separate command packages