package cmd import ( "strings" "github.com/rs/zerolog/log" "github.com/spf13/cobra" "github.com/truecharts/public/clustertool/pkg/scale" ) var scaleMigrateLongHelp = strings.TrimSpace(` `) var scalemigrate = &cobra.Command{ Use: "migrate", Short: "Migrate exported SCALE Apps to the Talos Cluster", Example: "clustertool scale migrate", Long: scaleMigrateLongHelp, Run: func(cmd *cobra.Command, args []string) { err := scale.ProcessJSONFiles("./truenas_exports") if err != nil { log.Info().Msgf("Error: %v", err) } }, } func init() { scaleCmd.AddCommand(scalemigrate) }