Add captured alias declaration types

This commit is contained in:
2026-10-19 17:23:32 +00:00
parent 854426a0c9
commit 7a4efddab8
9 changed files with 297 additions and 21 deletions

View File

@@ -29,7 +29,7 @@ type versionDocument struct {
Revision string `yaml:"revision"`
}
func (a *App) builtinCommands() []Command {
func (a *App) builtinCommands() []Declaration {
help := captureCommand(CommandSpec[helpInput]{
Name: "help",
Summary: "Show help for commands.",
@@ -61,7 +61,7 @@ func (a *App) builtinCommands() []Command {
return renderVersionOutcome(identity, input.Format, invocation.Streams)
},
})
return []Command{help, version}
return []Declaration{help, version}
}
func parseVersionScope(value string) (string, error) {