You've already forked step-ca-cli
mirror of
https://github.com/smallstep/cli.git
synced 2026-10-24 11:19:19 +03:00
25 lines
382 B
Go
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
|
|
}
|