Created
November 23, 2022 15:12
-
-
Save jlindsey/186c03f7db4a9622e6bd3c30652704cd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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