Render help through command aliases
This commit is contained in:
@@ -47,6 +47,21 @@ type FlagAlias struct {
|
||||
Target string
|
||||
}
|
||||
|
||||
// CommandAlias describes one explicitly declared command route for help.
|
||||
type CommandAlias struct {
|
||||
Source []string
|
||||
Target []string
|
||||
}
|
||||
|
||||
// HelpView selects a canonical or alias-only command help presentation.
|
||||
type HelpView struct {
|
||||
EnteredPath []string
|
||||
CanonicalPath []string
|
||||
Discovery bool
|
||||
CommandAliases []CommandAlias
|
||||
FlagAliases []FlagAlias
|
||||
}
|
||||
|
||||
// Failure is a neutral parsing or presentation failure.
|
||||
type Failure struct {
|
||||
Message string
|
||||
|
||||
Reference in New Issue
Block a user