Files
opencloud/pkg/register/command.go
2019-12-17 15:03:25 +01:00

23 lines
378 B
Go

package register
import (
"github.com/micro/cli"
"github.com/owncloud/ocis/pkg/config"
)
var (
// Commands defines the slice of commands.
Commands = []Command{}
)
// Command defines the register command.
type Command func(*config.Config) cli.Command
// AddCommand appends a command to Commands.
func AddCommand(cmd Command) {
Commands = append(
Commands,
cmd,
)
}