Clarify operator command help and preflight migration
This commit is contained in:
@@ -48,7 +48,8 @@ func checkCleanInput(input *cleanCommandInput) error {
|
||||
|
||||
func cleanCommand(deps commandDependencies) commandkit.Command {
|
||||
common := newConfigurationFlags(func(input **cleanCommandInput) *configurationSelection { return &(*input).Selection })
|
||||
return commandkit.NewCommand(commandkit.CommandSpec[*cleanCommandInput]{Name: "clean", Summary: "Remove selected local session data.", NewInput: func() *cleanCommandInput { return &cleanCommandInput{} },
|
||||
return commandkit.NewCommand(commandkit.CommandSpec[*cleanCommandInput]{Name: "clean", Summary: "Remove entire local sessions, including prepared inputs and products.",
|
||||
Description: "Deletes the selected local session workspace, including its manifest, prepared inputs, products, and run history. Remote data and subprocess caches remain. Use --dry-run to preview deletion. To remove only run history while retaining a reusable session, use narratio run SESSION --stage cleanup; this requires workspace.cleanup_after_publish=true and valid successful publication evidence.", NewInput: func() *cleanCommandInput { return &cleanCommandInput{} },
|
||||
Flags: []commandkit.Flag[*cleanCommandInput]{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 **cleanCommandInput, value commandkit.Supplied[string]) { (*input).PreviousSession = value }),
|
||||
commandkit.BoolFlag(commandkit.FlagMeta{Name: "all", Usage: "Clean all local session workspace entries."}, false, func(input **cleanCommandInput, value commandkit.Supplied[bool]) { (*input).All = value.Value }),
|
||||
|
||||
Reference in New Issue
Block a user