Skip to content

Commit

Permalink
--list and --all becomes the same, drop --list
Browse files Browse the repository at this point in the history
  • Loading branch information
fentas committed Mar 28, 2024
1 parent 1396a72 commit a34bbad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,15 @@ func (o *CmdBinaryOptions) AddFlags(cmd *cobra.Command) {
all := "Binaries installed and defined in b.yaml"
if o.NoConfig {
all = "All binaries"
} else {
cmd.Flags().BoolVar(&o.available, "list", false, "List all available binaries")

Check warning on line 100 in pkg/cli/cli.go

View check run for this annotation

Codecov / codecov/patch

pkg/cli/cli.go#L96-L100

Added lines #L96 - L100 were not covered by tests
}
cmd.Flags().BoolVarP(&o.all, "all", "a", false, all)

Check warning on line 102 in pkg/cli/cli.go

View check run for this annotation

Codecov / codecov/patch

pkg/cli/cli.go#L102

Added line #L102 was not covered by tests
for _, b := range o.Binaries {
cmd.Flags().BoolVar(o.ensure[b], b.Name, false, b.Name+" binary")
}

cmd.Flags().BoolVarP(&o.force, "upgrade", "u", false, "Upgrade if already installed")
cmd.Flags().BoolVarP(&o.install, "install", "i", false, "Install if not installed")
cmd.Flags().BoolVar(&o.available, "list", false, "List all available binaries")
cmd.Flags().BoolVarP(&o.check, "check", "c", false, "Check if binary is up to date")
}

Expand Down

0 comments on commit a34bbad

Please sign in to comment.