Files
charts/clustertool/cmd/adv_scalemigrate.go
2024-10-17 12:56:56 +02:00

23 lines
466 B
Go

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