Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@mahdyadi
Created March 8, 2020 21:01
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 mahdyadi/eb0ada12a7f2024b60c52e77aba6075a to your computer and use it in GitHub Desktop.
Save mahdyadi/eb0ada12a7f2024b60c52e77aba6075a to your computer and use it in GitHub Desktop.
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