2a0961701c
Tab completion currently only works on commands. Contextual completion will be added in the future.
12 lines
178 B
Go
12 lines
178 B
Go
package commands
|
|
|
|
var (
|
|
GlobalCommands *Commands
|
|
)
|
|
|
|
func register(cmd Command) {
|
|
if GlobalCommands == nil {
|
|
GlobalCommands = NewCommands()
|
|
}
|
|
GlobalCommands.Register(cmd)
|
|
}
|