package cmd import ( "git.sp4ke.com/sp4ke/gomark/config" "git.sp4ke.com/sp4ke/gomark/logging" "git.sp4ke.com/sp4ke/gomark/utils" "github.com/urfave/cli/v2" ) var log = logging.GetLogger("CMD") var cfgPrintCmd = &cli.Command{ Name: "print", Aliases: []string{"p"}, Usage: "print current config", Action: printConfig, } var ConfigCmds = &cli.Command{ Name: "config", Usage: "get/set config opetions", Subcommands: []*cli.Command{ cfgPrintCmd, }, } func printConfig(c *cli.Context) error { err := utils.PrettyPrint(config.GetAll()) if err != nil { return err } return nil }