2021-10-21 00:51:32 +00:00
|
|
|
package cmd
|
|
|
|
|
|
|
|
import (
|
|
|
|
"ledo/app/cmd/docker"
|
|
|
|
|
|
|
|
"github.com/urfave/cli/v2"
|
|
|
|
)
|
|
|
|
|
|
|
|
var CmdDocker = cli.Command{
|
|
|
|
Name: "docker",
|
|
|
|
Aliases: []string{"d"},
|
|
|
|
Category: catHelpers,
|
|
|
|
Usage: "docker helper",
|
|
|
|
Description: `Manage docker-compose in project`,
|
|
|
|
Action: runDockerDefault,
|
|
|
|
Subcommands: []*cli.Command{
|
|
|
|
&docker.CmdDockerPs,
|
|
|
|
&docker.CmdDockerFqn,
|
|
|
|
&docker.CmdDockerUp,
|
|
|
|
&docker.CmdComposeBuild,
|
|
|
|
&docker.CmdComposeDebug,
|
|
|
|
&docker.CmdComposeDown,
|
|
|
|
&docker.CmdComposeLogs,
|
|
|
|
&docker.CmdComposeRestart,
|
|
|
|
&docker.CmdComposeRun,
|
|
|
|
&docker.CmdComposeShell,
|
|
|
|
&docker.CmdComposeStart,
|
|
|
|
&docker.CmdComposeUpOnce,
|
|
|
|
&docker.CmdComposePull,
|
|
|
|
&docker.CmdComposeStop,
|
2021-11-30 16:58:09 +00:00
|
|
|
&docker.CmdDockerLogin,
|
2021-10-21 00:51:32 +00:00
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
func runDockerDefault(ctx *cli.Context) error {
|
|
|
|
return docker.RunComposePs(ctx)
|
|
|
|
}
|