Get completion working for kitten ssh

This commit is contained in:
Kovid Goyal
2023-02-19 20:50:58 +05:30
parent 590c1bd7ad
commit 407555c6c8
2 changed files with 4 additions and 2 deletions

View File

@@ -33,11 +33,11 @@ type Command struct {
ArgCompleter CompletionFunc
// Stop completion processing at this arg num
StopCompletingAtArg int
// Consider all args as non-options args
// Consider all args as non-options args when parsing for completion
OnlyArgsAllowed bool
// Pass through all args, useful for wrapper commands
IgnoreAllArgs bool
// Specialised arg aprsing
// Specialised arg parsing
ParseArgsForCompletion func(cmd *Command, args []string, completions *Completions)
SubCommandGroups []*CommandGroup