Status should take and arg and be spelled statusCmd
This commit is contained in:
5
main.go
5
main.go
@@ -60,10 +60,11 @@ var sayCmd = &cobra.Command{
|
||||
Args: cobra.MinimumNArgs(1),
|
||||
}
|
||||
|
||||
var statusCMd = &cobra.Command{
|
||||
var statusCmd = &cobra.Command{
|
||||
Use: "cmd",
|
||||
Short: "Get the status of the server",
|
||||
Run: server.Status,
|
||||
Args: cobra.MinimumNArgs(1),
|
||||
}
|
||||
|
||||
//go:embed templates/docker-compose.yml
|
||||
@@ -87,7 +88,7 @@ func init() {
|
||||
rootCmd.AddCommand(restartCmd)
|
||||
rootCmd.AddCommand(shellCmd)
|
||||
rootCmd.AddCommand(sayCmd)
|
||||
rootCmd.AddCommand(statusCMd)
|
||||
rootCmd.AddCommand(statusCmd)
|
||||
|
||||
t, err := template.New("compose").Parse(dockerCompose)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user