mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 11:03:34 +00:00
25 lines
409 B
Go
25 lines
409 B
Go
package machine
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func NewRootCommand() *cobra.Command {
|
|
cmd := &cobra.Command{
|
|
Use: "machine",
|
|
Aliases: []string{"m"},
|
|
Short: "Manage machines in the cluster.",
|
|
}
|
|
cmd.AddCommand(
|
|
NewAddCommand(),
|
|
NewInitCommand(),
|
|
NewListCommand(),
|
|
NewLogsCommand(),
|
|
NewRenameCommand(),
|
|
NewRmCommand(),
|
|
NewRTTCommand(),
|
|
NewUpdateCommand(),
|
|
)
|
|
return cmd
|
|
}
|