refactor: persistent DebugFlag

This commit is contained in:
2024-07-09 15:54:35 +02:00
parent ca37621ce3
commit 2c9e13d3d4
37 changed files with 12 additions and 54 deletions

View File

@ -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,