Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion cmd/image/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ import (
)

func Command() *cobra.Command {
imageCmd := &cobra.Command{Use: "image", Short: "Manage macOS disk images (reuses cocoon's cloudimg store)"} // --state-dir is a root persistent flag
imageCmd := &cobra.Command{
Use: "image",
Short: "Manage macOS disk images (reuses cocoon's cloudimg store)",
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, _ []string) error { return cmd.Help() },
}

pull := &cobra.Command{
Use: "pull REF",
Expand Down
7 changes: 6 additions & 1 deletion cmd/vm/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ import (
)

func Command() *cobra.Command {
vmCmd := &cobra.Command{Use: "vm", Short: "Manage macOS VMs"} // --state-dir is a root persistent flag
vmCmd := &cobra.Command{
Use: "vm",
Short: "Manage macOS VMs",
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, _ []string) error { return cmd.Help() },
}

createCmd := &cobra.Command{
Use: "create [flags] IMAGE",
Expand Down
Loading