summaryrefslogtreecommitdiff
path: root/command.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-03-22 08:30:23 +0100
committerDimitri Sokolyuk <demon@dim13.org>2016-03-22 08:30:23 +0100
commitc13badd5bd58f11cd9d50fa52b39a192b6e717be (patch)
treefc47dbe8c270e5bebb53903b2e273cde3fe18db0 /command.go
parentb608c1a002c0bdcc5b31982b9823da50fb949de1 (diff)
Less magic
Diffstat (limited to 'command.go')
-rw-r--r--command.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/command.go b/command.go
index 4fb08a5..15c4858 100644
--- a/command.go
+++ b/command.go
@@ -12,6 +12,8 @@ type Commander interface {
Help() string
}
+const maxLen = 500
+
var commands = make(map[string]Commander)
func Register(cmd string, f Commander) {