28 lines
554 B
Go
28 lines
554 B
Go
|
package cmd
|
||
|
|
||
|
import (
|
||
|
"github.com/spf13/cobra"
|
||
|
)
|
||
|
|
||
|
var (
|
||
|
// Used for flags.
|
||
|
userLicense string
|
||
|
|
||
|
rootCmd = &cobra.Command{
|
||
|
Use: "posadka",
|
||
|
Short: "",
|
||
|
//Long: `Cobra is a CLI library for Go that empowers applications.
|
||
|
//This application is a tool to generate the needed files
|
||
|
//to quickly create a Cobra application.`,
|
||
|
}
|
||
|
)
|
||
|
|
||
|
// Execute executes the root command.
|
||
|
func Execute() error {
|
||
|
return rootCmd.Execute()
|
||
|
}
|
||
|
|
||
|
func init() {
|
||
|
// rootCmd.PersistentFlags().StringVarP(&userLicense, "license", "l", "", "name of license for the project")
|
||
|
}
|