reader

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAuthor

func GetAuthor(cmd *cobra.Command, flag string) string

GetAuthor gets author name of the new project from CLI args.

func GetConfigFile

func GetConfigFile(cmd *cobra.Command, flag string) (config *models.GlobalConfig, err error)

GetConfigFile gets information from a configuration file

func GetDescription

func GetDescription(cmd *cobra.Command, flag string) string

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

func GetInitGit(cmd *cobra.Command, flag string) bool

GetInitGit gets a boolean value that defines init git repo or not.

func GetPackageName

func GetPackageName(args []string) string

GetPackageName gets a name of package from CLI args.

func GetPrefix added in v1.0.8

func GetPrefix(cmd *cobra.Command, flag string) string

GetPrefix gets a repo prefix for full package name

func GetSkip

func GetSkip(cmd *cobra.Command, flag string) []string

GetSkip gets objects to skip in the new project from CLI args.

func GetVSCode

func GetVSCode(cmd *cobra.Command, flag string) bool

GetVSCode gets a boolean balue that defines open the project in VS Code or not.

func IsSetInitGit added in v1.0.7

func IsSetInitGit(cmd *cobra.Command, flag string) bool

IsGetInitGit checks if InitGit flag is set

func IsSetInitVSCode added in v1.0.7

func IsSetInitVSCode(cmd *cobra.Command, flag string) bool

IsSetInitVSCode checks if InitVSCode is set

Types

type Reader

type Reader interface {
	Unmarshal(file []byte) (*models.GlobalConfig, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL