Files
opencloud/pkg/register/command.go
Jörn Friedrich Dreyer c2c12fd655 update micro deps to v2
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-02-11 10:33:18 +01:00

23 lines
382 B
Go

package register
import (
"github.com/micro/cli/v2"
"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,
)
}