First commit of golang CLI.
This commit is contained in:
32
wild-cli/cmd/wild/util/util.go
Normal file
32
wild-cli/cmd/wild/util/util.go
Normal file
@@ -0,0 +1,32 @@
|
||||
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
|
Reference in New Issue
Block a user