Don't suggest hidden commands.
This commit is contained in:
+1
-1
@@ -307,7 +307,7 @@ func (c *Context) trace(node *Node) (err error) { // nolint: gocyclo
|
||||
|
||||
// After positional arguments have been consumed, check commands next...
|
||||
for _, branch := range node.Children {
|
||||
if branch.Type == CommandNode {
|
||||
if branch.Type == CommandNode && !branch.Hidden {
|
||||
candidates = append(candidates, branch.Name)
|
||||
}
|
||||
if branch.Type == CommandNode && branch.Name == token.Value {
|
||||
|
||||
Reference in New Issue
Block a user