Clarify operator command help and preflight migration

This commit is contained in:
2026-11-30 17:21:07 +00:00
parent 8aa552070d
commit 723b788161
4 changed files with 23 additions and 4 deletions

View File

@@ -80,9 +80,15 @@ func executionCommand(name, summary string, regenerate bool, deps commandDepende
func executionCommandSpec(name, summary string, regenerate bool) commandkit.CommandSpec[*executionInput] {
common := newConfigurationFlags(func(input **executionInput) *configurationSelection { return &(*input).Selection })
artifactUsage := "Artifact or family targets for analysis and publication (repeatable or comma-separated)."
description := ""
if regenerate {
artifactUsage = "Analysis artifact or family targets; extraction is not narrowed (repeatable or comma-separated)."
description = "Forces the whole configured Notarius extraction, then rebuilds selected analysis targets and required prerequisites. --artifacts narrows analysis only. Stops before publication, notification, and cleanup."
}
flags := []commandkit.Flag[*executionInput]{common.Config, common.Overlay, common.Campaign, common.CampaignFile, common.SessionFile, common.PartyFile,
commandkit.ValueFlag(commandkit.FlagMeta{Name: "previous-session-id", Usage: "Assert the previous session identity."}, nil, stringValue, func(input **executionInput, value commandkit.Supplied[string]) { (*input).PreviousSession = value }),
commandkit.RepeatFlag(commandkit.FlagMeta{Name: "artifacts", Usage: "Analysis artifact or family targets (repeatable or comma-separated)."}, []string(nil), stringValue, func(input **executionInput, value commandkit.Supplied[[]string]) { (*input).Artifacts = value }),
commandkit.RepeatFlag(commandkit.FlagMeta{Name: "artifacts", Usage: artifactUsage}, []string(nil), stringValue, func(input **executionInput, value commandkit.Supplied[[]string]) { (*input).Artifacts = value }),
}
if !regenerate {
flags = append(flags,
@@ -93,7 +99,7 @@ func executionCommandSpec(name, summary string, regenerate bool) commandkit.Comm
)
}
return commandkit.CommandSpec[*executionInput]{
Name: name, Summary: summary, NewInput: func() *executionInput { return &executionInput{} }, Flags: flags,
Name: name, Summary: summary, Description: description, NewInput: func() *executionInput { return &executionInput{} }, Flags: flags,
Arguments: []commandkit.Argument[*executionInput]{commandkit.ValueArgument(commandkit.ArgumentMeta{Name: "SESSION", Usage: "Session identity."}, true, stringValue, func(input **executionInput, value commandkit.Supplied[string]) { (*input).Selection.Session = value })},
CheckInput: func(input *executionInput) error {
if regenerate {