Files
opencloud/ocis/pkg/register/command.go
Jörn Friedrich Dreyer 8e028f17e9 change module name
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2025-01-13 09:58:18 +01:00

23 lines
397 B
Go

package register
import (
"github.com/opencloud-eu/opencloud/ocis-pkg/config"
"github.com/urfave/cli/v2"
)
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,
)
}