26 lines
457 B
Go
26 lines
457 B
Go
|
|
package config
|
||
|
|
|
||
|
|
import (
|
||
|
|
"github.com/urfave/cli/v2"
|
||
|
|
)
|
||
|
|
|
||
|
|
func Command() *cli.Command {
|
||
|
|
return &cli.Command{
|
||
|
|
Name: "config",
|
||
|
|
Usage: "manage config file",
|
||
|
|
Aliases: []string{"cf"},
|
||
|
|
Action: action,
|
||
|
|
Category: "\nManagement",
|
||
|
|
Subcommands: subcommands(),
|
||
|
|
HideHelpCommand: true,
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
func action(c *cli.Context) error {
|
||
|
|
err := cli.ShowSubcommandHelp(c)
|
||
|
|
if err != nil {
|
||
|
|
return err
|
||
|
|
}
|
||
|
|
return nil
|
||
|
|
}
|