fix missing subcommands

parent c8edd765
...@@ -25,10 +25,14 @@ import ( ...@@ -25,10 +25,14 @@ import (
// NewCommand created a new `sketch` command // NewCommand created a new `sketch` command
func NewCommand() *cobra.Command { func NewCommand() *cobra.Command {
return &cobra.Command{ cmd := &cobra.Command{
Use: "sketch", Use: "sketch",
Short: "Arduino CLI Sketch Commands.", Short: "Arduino CLI Sketch Commands.",
Long: "Arduino CLI Sketch Commands.", Long: "Arduino CLI Sketch Commands.",
Example: " " + os.Args[0] + " sketch new MySketch", Example: " " + os.Args[0] + " sketch new MySketch",
} }
cmd.AddCommand(initNewCommand())
return cmd
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment