initial commit
This commit is contained in:
22
app/cmd/mode/list.go
Normal file
22
app/cmd/mode/list.go
Normal file
@@ -0,0 +1,22 @@
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user