remove workaround to load config in root.Before()

see: https://github.com/urfave/cli/issues/2348
This commit is contained in:
2026-07-08 14:07:47 +02:00
parent 8614e09004
commit e4ebc43675
14 changed files with 36 additions and 43 deletions

View File

@@ -83,7 +83,7 @@ func ClusterSwitch(conf *cfg.Config) *cli.Command {
Aliases: []string{"ctx"},
ShellComplete: func(ctx context.Context, cmd *cli.Command) {
complete(cmd, Ccluster)
complete(conf, cmd, Ccluster)
},
Action: func(ctx context.Context, cmd *cli.Command) error {