Files
opencloud/pkg/command/phoenix.go
Jörn Friedrich Dreyer 3b24c1a9bd configure phoenix apps
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-01-10 15:52:10 +01:00

32 lines
711 B
Go

package command
import (
"github.com/micro/cli"
"github.com/owncloud/ocis-phoenix/pkg/command"
"github.com/owncloud/ocis-phoenix/pkg/flagset"
"github.com/owncloud/ocis/pkg/config"
"github.com/owncloud/ocis/pkg/register"
)
// PhoenixCommand is the entrypoint for the phoenix command.
func PhoenixCommand(cfg *config.Config) cli.Command {
return cli.Command{
Name: "phoenix",
Usage: "Start phoenix server",
Category: "Extensions",
Flags: flagset.ServerWithConfig(cfg.Phoenix),
Action: func(c *cli.Context) error {
scfg := configurePhoenix(cfg)
return cli.HandleAction(
command.Server(scfg).Action,
c,
)
},
}
}
func init() {
register.AddCommand(PhoenixCommand)
}