Skip to content

Instantly share code, notes, and snippets.

@jlindsey
Created November 23, 2022 15:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jlindsey/186c03f7db4a9622e6bd3c30652704cd to your computer and use it in GitHub Desktop.
Save jlindsey/186c03f7db4a9622e6bd3c30652704cd to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
"github.com/spf13/cobra"
)
var cmd = &cobra.Command{
Use: "cobratest",
Short: "cobratest says hello",
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("hello, world")
},
}
func main() {
cmd.Execute()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment