summaryrefslogtreecommitdiff
path: root/go/internal/command/command.go
diff options
context:
space:
mode:
authorAsh McKenzie <amckenzie@gitlab.com>2019-10-09 02:55:52 +0000
committerAsh McKenzie <amckenzie@gitlab.com>2019-10-09 02:55:52 +0000
commit26ad6f92dc6d74b2f35b8a96705caf27054f5440 (patch)
treebe11f701523c8cf60f5b0622f148ba358c3c9081 /go/internal/command/command.go
parente28f75c8d439812f61c4cf0c0291380df4d17106 (diff)
parentba9b7c0e8acd7b3acb03086a5c1e132256fbd36e (diff)
downloadgitlab-shell-26ad6f92dc6d74b2f35b8a96705caf27054f5440.tar.gz
Merge branch '173-remove-bin-check' into 'master'
Rewrite `bin/check` in Go See merge request gitlab-org/gitlab-shell!341
Diffstat (limited to 'go/internal/command/command.go')
-rw-r--r--go/internal/command/command.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/go/internal/command/command.go b/go/internal/command/command.go
index 40d92e0..52393df 100644
--- a/go/internal/command/command.go
+++ b/go/internal/command/command.go
@@ -5,6 +5,7 @@ import (
"gitlab.com/gitlab-org/gitlab-shell/go/internal/command/authorizedprincipals"
"gitlab.com/gitlab-org/gitlab-shell/go/internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/go/internal/command/discover"
+ "gitlab.com/gitlab-org/gitlab-shell/go/internal/command/healthcheck"
"gitlab.com/gitlab-org/gitlab-shell/go/internal/command/lfsauthenticate"
"gitlab.com/gitlab-org/gitlab-shell/go/internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/go/internal/command/receivepack"
@@ -41,6 +42,8 @@ func buildCommand(e *executable.Executable, args commandargs.CommandArgs, config
return buildAuthorizedKeysCommand(args.(*commandargs.AuthorizedKeys), config, readWriter)
case executable.AuthorizedPrincipalsCheck:
return buildAuthorizedPrincipalsCommand(args.(*commandargs.AuthorizedPrincipals), config, readWriter)
+ case executable.Healthcheck:
+ return buildHealthcheckCommand(config, readWriter)
}
return nil
@@ -72,3 +75,7 @@ func buildAuthorizedKeysCommand(args *commandargs.AuthorizedKeys, config *config
func buildAuthorizedPrincipalsCommand(args *commandargs.AuthorizedPrincipals, config *config.Config, readWriter *readwriter.ReadWriter) Command {
return &authorizedprincipals.Command{Config: config, Args: args, ReadWriter: readWriter}
}
+
+func buildHealthcheckCommand(config *config.Config, readWriter *readwriter.ReadWriter) Command {
+ return &healthcheck.Command{Config: config, ReadWriter: readWriter}
+}