Run invocation features and render final reports

This commit is contained in:
2026-11-22 20:54:58 +00:00
parent b6cb183a71
commit d039efb11d
9 changed files with 182 additions and 14 deletions

View File

@@ -28,8 +28,12 @@ func Completion(executable string) Command {
},
}))
}
for _, child := range children {
child.record.builtin = true
}
command := RootGroup("completion", "Generate shell completion scripts.", children...)
command.record.completion = true
command.record.builtin = true
if !validCompletionExecutable(executable) {
return WithError(command, fmt.Errorf("unsupported completion executable basename %q", executable))
}