pkg/cmd/admin/migrate/migrate.go
d04b1b51
 package migrate
 
 import (
 	"io"
 
 	"github.com/spf13/cobra"
 
6267dded
 	"github.com/openshift/origin/pkg/cmd/templates"
d04b1b51
 	cmdutil "github.com/openshift/origin/pkg/cmd/util"
 	"github.com/openshift/origin/pkg/cmd/util/clientcmd"
 )
 
 const MigrateRecommendedName = "migrate"
 
6267dded
 var migrateLong = templates.LongDesc(`
 	Migrate resources on the cluster
d04b1b51
 
6267dded
 	These commands assist administrators in performing preventative maintenance on a cluster.`)
d04b1b51
 
 func NewCommandMigrate(name, fullName string, f *clientcmd.Factory, out io.Writer, cmds ...*cobra.Command) *cobra.Command {
 	// Parent command to which all subcommands are added.
 	cmd := &cobra.Command{
 		Use:   name,
 		Short: "Migrate data in the cluster",
 		Long:  migrateLong,
 		Run:   cmdutil.DefaultSubCommandRun(out),
 	}
 	cmd.AddCommand(cmds...)
 	return cmd
 }