package cmd

import (
	"github.com/spf13/cobra"
	"github.com/spf13/viper"
)

// applyCmd represents the apply command
var configCmd = &cobra.Command{
	Use:   "config",
	Short: "Write config to file",
	Long:  `Write config to file`,
	Run: func(cmd *cobra.Command, args []string) {
		err := viper.WriteConfig()
		if err != nil {
			panic(err)
		}
	},
}

func init() {
	rootCmd.AddCommand(configCmd)
}
