Documentation ¶
Index ¶
- func GetAuthor(cmd *cobra.Command, flag string) string
- func GetConfigFile(cmd *cobra.Command, flag string) (config *models.GlobalConfig, err error)
- func GetDescription(cmd *cobra.Command, flag string) string
- func GetGlobalConfig(filename string) (config *models.GlobalConfig, err error)
- func GetInitGit(cmd *cobra.Command, flag string) bool
- func GetPackageName(args []string) string
- func GetPrefix(cmd *cobra.Command, flag string) string
- func GetSkip(cmd *cobra.Command, flag string) []string
- func GetVSCode(cmd *cobra.Command, flag string) bool
- func IsSetInitGit(cmd *cobra.Command, flag string) bool
- func IsSetInitVSCode(cmd *cobra.Command, flag string) bool
- type Reader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfigFile ¶
GetConfigFile gets information from a configuration file
func GetDescription ¶
GetDescription gets description of the new project from CLI args.
func GetGlobalConfig ¶
func GetGlobalConfig(filename string) (config *models.GlobalConfig, err error)
Unmarshal reads file provided in CLI to models.GetGlobalConfig
func GetInitGit ¶
GetInitGit gets a boolean value that defines init git repo or not.
func GetPackageName ¶
GetPackageName gets a name of package from CLI args.
func IsSetInitGit ¶ added in v1.0.7
IsGetInitGit checks if InitGit flag is set
Types ¶
Click to show internal directories.
Click to hide internal directories.