forked from toolshed/abra
refactor: persistent DebugFlag
This commit is contained in:
@ -36,9 +36,6 @@ EXAMPLE:
|
||||
|
||||
abra autocomplete bash`,
|
||||
ArgsUsage: "<shell>",
|
||||
Flags: []cli.Flag{
|
||||
internal.DebugFlag,
|
||||
},
|
||||
Action: func(ctx context.Context, cmd *cli.Command) error {
|
||||
shellType := cmd.Args().First()
|
||||
|
||||
@ -157,6 +154,9 @@ func newAbraApp(version, commit string) *cli.Command {
|
||||
|_|
|
||||
`,
|
||||
Version: fmt.Sprintf("%s-%s", version, commit[:7]),
|
||||
Flags: []cli.Flag{
|
||||
internal.DebugFlag,
|
||||
},
|
||||
Commands: []*cli.Command{
|
||||
&app.AppCommand,
|
||||
&server.ServerCommand,
|
||||
|
Reference in New Issue
Block a user