Report preflight smoke usage with its correct scope
This commit is contained in:
@@ -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...)
|
||||
|
||||
Reference in New Issue
Block a user