mirror of
https://github.com/k3s-io/k3s.git
synced 2026-04-11 12:26:44 -04:00
15 lines
288 B
Go
15 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,
|
|
}
|
|
}
|