summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2021-09-08 10:06:06 +0000
committerNick Thomas <nick@gitlab.com>2021-09-08 10:06:06 +0000
commit7884a4420ac8ffd3ee34589c0f8e0d25ca0fd076 (patch)
tree612c450010837d2dde0f11446c4cbe79bc20af49 /cmd
parent07bbfd279bc236229d95942372370b955db08b75 (diff)
parent8b4621aa6cba1674192ffb6e3c3e801a567f2516 (diff)
downloadgitlab-shell-7884a4420ac8ffd3ee34589c0f8e0d25ca0fd076.tar.gz
Merge branch 'remove/generic-args' into 'main'
refactor: remove commandargs.GenericArgs Closes #212 See merge request gitlab-org/gitlab-shell!506
Diffstat (limited to 'cmd')
-rw-r--r--cmd/check/main.go2
-rw-r--r--cmd/gitlab-shell-authorized-keys-check/main.go2
-rw-r--r--cmd/gitlab-shell-authorized-principals-check/main.go2
-rw-r--r--cmd/gitlab-shell/main.go2
4 files changed, 4 insertions, 4 deletions
diff --git a/cmd/check/main.go b/cmd/check/main.go
index a6a8fa3..44d8175 100644
--- a/cmd/check/main.go
+++ b/cmd/check/main.go
@@ -19,7 +19,7 @@ func main() {
ErrOut: os.Stderr,
}
- executable, err := executable.New(executable.Healthcheck)
+ executable, err := executable.New(executable.Healthcheck, false)
if err != nil {
fmt.Fprintln(readWriter.ErrOut, "Failed to determine executable, exiting")
os.Exit(1)
diff --git a/cmd/gitlab-shell-authorized-keys-check/main.go b/cmd/gitlab-shell-authorized-keys-check/main.go
index 81937a7..cda3e0b 100644
--- a/cmd/gitlab-shell-authorized-keys-check/main.go
+++ b/cmd/gitlab-shell-authorized-keys-check/main.go
@@ -20,7 +20,7 @@ func main() {
ErrOut: os.Stderr,
}
- executable, err := executable.New(executable.AuthorizedKeysCheck)
+ executable, err := executable.New(executable.AuthorizedKeysCheck, true)
if err != nil {
fmt.Fprintln(readWriter.ErrOut, "Failed to determine executable, exiting")
os.Exit(1)
diff --git a/cmd/gitlab-shell-authorized-principals-check/main.go b/cmd/gitlab-shell-authorized-principals-check/main.go
index 8d0aba8..87f7fa3 100644
--- a/cmd/gitlab-shell-authorized-principals-check/main.go
+++ b/cmd/gitlab-shell-authorized-principals-check/main.go
@@ -20,7 +20,7 @@ func main() {
ErrOut: os.Stderr,
}
- executable, err := executable.New(executable.AuthorizedPrincipalsCheck)
+ executable, err := executable.New(executable.AuthorizedPrincipalsCheck, true)
if err != nil {
fmt.Fprintln(readWriter.ErrOut, "Failed to determine executable, exiting")
os.Exit(1)
diff --git a/cmd/gitlab-shell/main.go b/cmd/gitlab-shell/main.go
index e139ab7..fe52bfc 100644
--- a/cmd/gitlab-shell/main.go
+++ b/cmd/gitlab-shell/main.go
@@ -34,7 +34,7 @@ func main() {
ErrOut: os.Stderr,
}
- executable, err := executable.New(executable.GitlabShell)
+ executable, err := executable.New(executable.GitlabShell, true)
if err != nil {
fmt.Fprintln(readWriter.ErrOut, "Failed to determine executable, exiting")
os.Exit(1)