1
0
mirror of https://github.com/smallstep/cli.git synced 2026-10-24 11:19:19 +03:00
Files
step-ca-cli/command/command.go
2018-07-23 13:09:02 -07:00

25 lines
382 B
Go

package command
import (
"github.com/smallstep/cli/usage"
"github.com/urfave/cli"
)
var cmds []cli.Command
func init() {
cmds = []cli.Command{
usage.HelpCommand(),
}
}
// Register adds the given command to the global list of commands
func Register(c cli.Command) {
cmds = append(cmds, c)
}
// Retrieve returns all commands
func Retrieve() []cli.Command {
return cmds
}