summaryrefslogtreecommitdiff
path: root/command.go
diff options
context:
space:
mode:
authorEyal Posener <[email protected]>2017-05-05 18:06:31 +0300
committerEyal Posener <[email protected]>2017-05-05 18:06:31 +0300
commit6311b602abc0f3c0a854c244fca147101b623eba (patch)
treedb122918e9cc3db3da252dc022105d72c941d24f /command.go
parentbc26c054b7f27739eda76f9bbd0addb5e80e9252 (diff)
Add plural forms for less verbose declarations
Diffstat (limited to 'command.go')
-rw-r--r--command.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/command.go b/command.go
index 48dece3..db60c3b 100644
--- a/command.go
+++ b/command.go
@@ -1,8 +1,12 @@
package complete
+type Commands map[string]Command
+
+type Flags map[string]FlagOptions
+
type Command struct {
- Sub map[string]Command
- Flags map[string]FlagOptions
+ Sub Commands
+ Flags Flags
}
// options returns all available complete options for the given command