Files
wild-cloud/wild-cli/cmd/wild/util/util.go

33 lines
750 B
Go

package util
import (
"github.com/spf13/cobra"
)
// NewBackupCommand is implemented in backup.go
// NewDashboardCommand is implemented in dashboard.go
// NewTemplateCommand creates the template command
func NewTemplateCommand() *cobra.Command {
cmd := &cobra.Command{
Use: "template",
Short: "Process templates",
Long: `Process template files with Wild Cloud configuration.`,
}
cmd.AddCommand(newCompileCommand())
return cmd
}
// NewStatusCommand creates the status command
func NewStatusCommand() *cobra.Command {
return &cobra.Command{
Use: "status",
Short: "Show Wild Cloud status",
Long: `Show the overall status of the Wild Cloud system.`,
RunE: runStatus,
}
}
// NewVersionCommand is implemented in version.go