27 lines
521 B
Go
Raw Normal View History

2024-05-24 19:41:44 +02:00
package config
import (
"github.com/DariusKlein/kleinCommand/types"
2024-05-24 19:41:44 +02:00
"github.com/urfave/cli/v2"
)
func Command(config types.Config) *cli.Command {
2024-05-24 19:41:44 +02:00
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
}