mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
15 lines
259 B
Go
15 lines
259 B
Go
package cmds
|
|
|
|
import (
|
|
"github.com/rancher/spur/cli"
|
|
)
|
|
|
|
func NewCtrCommand(action func(*cli.Context) error) *cli.Command {
|
|
return &cli.Command{
|
|
Name: "ctr",
|
|
Usage: "Run ctr",
|
|
SkipFlagParsing: true,
|
|
Action: action,
|
|
}
|
|
}
|