this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

enable shell completion

Alex Ottr 7ac3e496 2f015382

+10 -5
+10 -5
cmd/nox/main.go
··· 25 25 var outputPath string 26 26 27 27 cmd := &cli.Command{ 28 - Name: "nox", 29 - Usage: "Manage and decrypt app secrets", 28 + Name: "nox", 29 + Usage: "Manage and decrypt app secrets", 30 + EnableShellCompletion: true, 30 31 Flags: []cli.Flag{ 31 32 &cli.StringFlag{ 32 33 Name: "config", ··· 138 139 Aliases: []string{"v"}, 139 140 Usage: "Validate configuration and secret integrity", 140 141 Action: func(ctx context.Context, cmd *cli.Command) error { 141 - cfg, err := config.Load(configPath) 142 + rtx, err := config.BuildRuntimeContext(config.RuntimeOptions{ 143 + ConfigPath: configPath, 144 + StatePath: statePath, 145 + IdentityPath: identityPath, 146 + }) 142 147 if err != nil { 143 - log.Fatalf("failed to load config: %v", err) 148 + log.Fatalf("failed to build runtime context: %v", err) 144 149 } 145 - return processor.Validate(cfg) 150 + return processor.ValidateConfig(rtx.Config) 146 151 }, 147 152 }, 148 153 },