mirror of https://github.com/k3s-io/k3s
16 lines
288 B
Go
16 lines
288 B
Go
|
package cmds
|
||
|
|
||
|
import (
|
||
|
"github.com/urfave/cli"
|
||
|
)
|
||
|
|
||
|
func NewKubectlCommand(action func(*cli.Context) error) cli.Command {
|
||
|
return cli.Command{
|
||
|
Name: "kubectl",
|
||
|
Usage: "Run kubectl",
|
||
|
SkipFlagParsing: true,
|
||
|
SkipArgReorder: true,
|
||
|
Action: action,
|
||
|
}
|
||
|
}
|