diff options
Diffstat (limited to 'cmd/commands.go')
-rw-r--r-- | cmd/commands.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/commands.go b/cmd/commands.go index 89c4fe43d..ccb82b115 100644 --- a/cmd/commands.go +++ b/cmd/commands.go @@ -61,6 +61,12 @@ type Command struct { // any error that occurred. type CommandFunc func(Flags) (int, error) +// Commands returns a list of commands initialised by +// RegisterCommand +func Commands() map[string]Command { + return commands +} + var commands = make(map[string]Command) func init() { |