Created
March 8, 2020 21:01
-
-
Save mahdyadi/eb0ada12a7f2024b60c52e77aba6075a 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 cmd | |
import ( | |
"fmt" | |
"github.com/spf13/cobra" | |
) | |
var helloCmd = &cobra.Command{ | |
Use: "hello", | |
Short: "Say hello to anyone!", | |
Long: "Say hello to the world & anyone!", | |
Run: func(cmd *cobra.Command, args []string) { | |
fmt.Println("Hello, World!") | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment