summaryrefslogtreecommitdiff
path: root/command.go
diff options
context:
space:
mode:
authorEyal Posener <[email protected]>2017-05-06 20:07:50 +0300
committerEyal Posener <[email protected]>2017-05-06 20:24:53 +0300
commitf46c5f8a2808c5ade2f0b805a473765960250fe4 (patch)
tree1165a98f6d513e878e74490d0bb8b97bd0ae5feb /command.go
parentdc4c327ae8cd5602ae10eeabde9bdf6fa5624286 (diff)
Change Predicate to be of function type
Diffstat (limited to 'command.go')
-rw-r--r--command.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/command.go b/command.go
index fc0e28b..eac9dde 100644
--- a/command.go
+++ b/command.go
@@ -2,13 +2,13 @@ package complete
type Commands map[string]Command
-type Flags map[string]*Predicate
+type Flags map[string]Predicate
type Command struct {
Name string
Sub Commands
Flags Flags
- Args *Predicate
+ Args Predicate
}
// options returns all available complete options for the given command