You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
689 B
Go
29 lines
689 B
Go
package cmd
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var rootCmd = &cobra.Command{
|
|
Use: "${REPO_NAME}",
|
|
Short: "A brief description of your application",
|
|
Long: `A longer description that spans multiple lines and likely contains
|
|
examples and usage of using your application.`,
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
fmt.Println("Hello from your new Go CLI!")
|
|
},
|
|
}
|
|
|
|
// Execute adds all child commands to the root command and sets flags appropriately.
|
|
// This is called by main.main(). It only needs to happen once to the rootCmd.
|
|
func Execute() error {
|
|
return rootCmd.Execute()
|
|
}
|
|
|
|
func init() {
|
|
// Here you will define your flags and configuration settings.
|
|
}
|