2019-11-12 14:12:37 +00:00
|
|
|
package cmds
|
|
|
|
|
|
|
|
import (
|
2020-08-29 19:46:55 +00:00
|
|
|
"github.com/urfave/cli"
|
2019-11-12 14:12:37 +00:00
|
|
|
)
|
|
|
|
|
2020-08-29 19:46:55 +00:00
|
|
|
func NewCheckConfigCommand(action func(*cli.Context) error) cli.Command {
|
|
|
|
return cli.Command{
|
2019-11-12 14:12:37 +00:00
|
|
|
Name: "check-config",
|
|
|
|
Usage: "Run config check",
|
|
|
|
SkipFlagParsing: true,
|
2020-08-29 19:46:55 +00:00
|
|
|
SkipArgReorder: true,
|
2019-11-12 14:12:37 +00:00
|
|
|
Action: action,
|
|
|
|
}
|
|
|
|
}
|