Clarify operator command help and preflight migration
This commit is contained in:
@@ -74,7 +74,14 @@ type sessionPublishedOutput struct {
|
||||
}
|
||||
|
||||
func sessionStateCommand(name string, status bool, deps commandDependencies) commandkit.Command {
|
||||
spec := sessionInspectionSpec(name, "Inspect session state without changing it.", !status)
|
||||
summary := "Inspect session artifact definitions and availability."
|
||||
description := "Reports definitions, dependencies, and local artifact evidence. Add --remote to inspect remote publication and locks. Does not read artifact payload bodies."
|
||||
if status {
|
||||
summary = "Inspect session progress and local and remote state."
|
||||
description = "Reports manifest stages, artifacts, configuration provenance, and readiness. Includes remote current state when storage is configured; remote inspection failures can return a partial report with a failed outcome."
|
||||
}
|
||||
spec := sessionInspectionSpec(name, summary, !status)
|
||||
spec.Description = description
|
||||
spec.Run = func(invocation commandkit.Invocation, input *sessionInspectionInput) commandkit.Outcome {
|
||||
report, err := inspectSelectedSessionState(invocation.Context, input, status, withCommandReporting(deps, invocation))
|
||||
if report != nil {
|
||||
|
||||
Reference in New Issue
Block a user