ledo/app/cmd/mode/list.go

20 lines
373 B
Go
Raw Permalink Normal View History

2021-10-21 00:51:32 +00:00
package mode
import (
"github.com/urfave/cli/v2"
"ledo/app/modules/context"
)
var CmdModeList = cli.Command{
Name: "list",
Usage: "list run modes",
Description: `List modes defined in project config file`,
Action: RunModeList,
}
func RunModeList(cmd *cli.Context) error {
ctx := context.InitCommand(cmd)
ctx.Mode.PrintListModes()
return nil
}