Report preflight smoke usage with its correct scope

This commit is contained in:
2026-11-27 04:12:41 +00:00
parent f5cef61bb5
commit b96eeb57ba
5 changed files with 146 additions and 9 deletions

View File

@@ -118,7 +118,13 @@ func buildApplicationWithClient(client *http.Client, extra ...commandkit.Declara
})
definitions = ckprompt.WithSmokeTesting(definitions, capturePromptEngine, nil)
definitions = withPromptBootstrapContext(definitions)
declarations := []commandkit.Declaration{configCommand, commandkit.Completion("audita"), commandkit.WithInvocationFeature(processCommand(), bootstrapFeature()), commandkit.WithInvocationFeature(preflightCommand(), bootstrapFeature()), commandkit.Alias("run", "process")}
declarations := []commandkit.Declaration{
configCommand,
commandkit.Completion("audita"),
commandkit.WithInvocationFeature(processCommand(), bootstrapFeature()),
commandkit.WithInvocationFeature(commandkit.WithInvocationFeature(preflightCommand(), bootstrapFeature()), preflightUsageFeature()),
commandkit.Alias("run", "process"),
}
declarations = append(declarations, ckprompt.Declarations(definitions)...)
declarations = append(declarations, extra...)
return commandkit.New(commandkit.Identity{Name: "audita", Version: buildinfo.Version()}, declarations...)