Skip to content

Commit

Permalink
Remove extra staff flag definitions
Browse files Browse the repository at this point in the history
Fixes #5 by removing all staff flag definitions since the flag
is defined as a persistent flag for every command already.

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
  • Loading branch information
alexellis committed Sep 14, 2023
1 parent da27347 commit a76218e
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions cmd/repair.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ status.`,

cmd.RunE = runRepairE

cmd.Flags().BoolP("staff", "s", false, "List staff repair")

return cmd
}

Expand Down
1 change: 0 additions & 1 deletion cmd/restart.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ func makeRestart() *cobra.Command {
cmd.RunE = runRestartE

cmd.Flags().StringP("owner", "o", "", "Owner")
cmd.Flags().BoolP("staff", "s", false, "Staff flag")
cmd.Flags().BoolP("reboot", "r", false, "Reboot the machine instead of just restarting the service")

return cmd
Expand Down
1 change: 0 additions & 1 deletion cmd/runners.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ func makeRunners() *cobra.Command {

cmd.RunE = runRunnersE

cmd.Flags().BoolP("staff", "s", false, "List staff runners")
cmd.Flags().Bool("json", false, "Request output in JSON format")

return cmd
Expand Down
1 change: 0 additions & 1 deletion cmd/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ func makeUpgrade() *cobra.Command {
cmd.RunE = runUpgradeE

cmd.Flags().StringP("owner", "o", "", "Owner")
cmd.Flags().BoolP("staff", "s", false, "Staff flag")
cmd.Flags().BoolP("force", "f", false, "Force upgrade")
cmd.Flags().BoolP("all", "a", false, "Upgrade all hosts instead of giving --host")

Expand Down

0 comments on commit a76218e

Please sign in to comment.