diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 24 |
1 files changed, 7 insertions, 17 deletions
@@ -28,26 +28,16 @@ func main() { Destination: &NoCache, }, }, - // Action: func(ctx context.Context, cmd *cli.Command) error { + Action: func(ctx context.Context, cmd *cli.Command) error { + if cmd.Args().Len() == 0 { + printErrorAndExit("Please provide a formulae/cask name.") + } + searchAndPrint(cmd.Args().First()) - - // return nil - // }, + return nil + }, Commands: []*cli.Command{ { - Name: "info", - Aliases: []string{"i"}, - Usage: "Show info and reverse dependencies of a formula/cask.", - Action: func(ctx context.Context, cmd *cli.Command) error { - if cmd.Args().Len() == 0 { - printErrorAndExit("Please provide a formulae/cask name.") - } - searchAndPrint(cmd.Args().First()) - - return nil - }, - }, - { Name: "list", Aliases: []string{"l", "ls"}, Usage: "Better brew list.", |
