2020-04-10 08:27:43 +02:00
|
|
|
package serv
|
|
|
|
|
2020-04-11 08:45:06 +02:00
|
|
|
// func cmdConfDump(cmd *cobra.Command, args []string) {
|
|
|
|
// if len(args) != 1 {
|
|
|
|
// cmd.Help() //nolint: errcheck
|
|
|
|
// os.Exit(1)
|
|
|
|
// }
|
2020-04-10 08:27:43 +02:00
|
|
|
|
2020-04-11 08:45:06 +02:00
|
|
|
// fname := fmt.Sprintf("%s.%s", config.GetConfigName(), args[0])
|
2020-04-10 08:27:43 +02:00
|
|
|
|
2020-04-11 08:45:06 +02:00
|
|
|
// conf, err := initConf()
|
|
|
|
// if err != nil {
|
|
|
|
// log.Fatalf("ERR failed to read config: %s", err)
|
|
|
|
// }
|
2020-04-10 08:27:43 +02:00
|
|
|
|
2020-04-11 08:45:06 +02:00
|
|
|
// if err := conf.WriteConfigAs(fname); err != nil {
|
|
|
|
// log.Fatalf("ERR failed to write config: %s", err)
|
|
|
|
// }
|
2020-04-10 08:27:43 +02:00
|
|
|
|
2020-04-11 08:45:06 +02:00
|
|
|
// log.Printf("INF config dumped to ./%s", fname)
|
|
|
|
// }
|