utils

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDependency

func AddDependency(packageList []string, isDev bool, projectName string) error

func CloneTemplateRepo added in v1.0.0

func CloneTemplateRepo(tmpRepoDir string, branch string) error

func CopyTemplateFromRepo added in v1.0.0

func CopyTemplateFromRepo(templateToCopy string, destinationDir string, copyFolderContent bool) error

func DecodeJson

func DecodeJson(filePath string) (map[string]interface{}, *os.File, error)

func DeleteTemplateRepo added in v1.0.0

func DeleteTemplateRepo(tmpRepoDir string) error

func GetBooleanInput

func GetBooleanInput(label string) string

func GetCheckbox

func GetCheckbox(label string, opts []string) string

func GetDeps

func GetDeps() ([]string, []string)

func GetInput

func GetInput(label string) string

func InitFlags added in v1.3.0

func InitFlags(rootCmd *cobra.Command)

func InstallDependencies

func InstallDependencies(projectName string, packageManager string) error

func SaveJsonFile

func SaveJsonFile(file *os.File, data map[string]interface{}) error

func SetDeps

func SetDeps(newDeps []string, newDevDeps []string)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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