k3s/pkg/cli/cmds/ctr.go

16 lines
276 B
Go
Raw Normal View History

2019-02-08 04:08:10 +00:00
package cmds
import (
"github.com/urfave/cli"
2019-02-08 04:08:10 +00:00
)
func NewCtrCommand(action func(*cli.Context) error) cli.Command {
return cli.Command{
2019-02-08 04:08:10 +00:00
Name: "ctr",
Usage: "Run ctr",
SkipFlagParsing: true,
SkipArgReorder: true,
2019-02-08 04:08:10 +00:00
Action: action,
}
}