Documentation
¶
Overview ¶
Package utils provides extra utility for the program
Index ¶
- Constants
- func ExecuteCmd(name string, args []string, dir string) error
- func GoFmt(appDir string) error
- func GoGetPackage(appDir string, packages []string) error
- func HasChangedFlag(flagSet *pflag.FlagSet) bool
- func InitGoMod(projectName string, appDir string) error
- func NonInteractiveCommand(flagSet *pflag.FlagSet) string
Constants ¶
View Source
const ProgramName = "go-blueprint"
Variables ¶
This section is empty.
Functions ¶
func ExecuteCmd ¶
ExecuteCmd provides a shorthand way to run a shell command
func GoGetPackage ¶
GoGetPackage runs "go get" for a given package in the selected directory
func HasChangedFlag ¶ added in v0.2.9
func NonInteractiveCommand ¶ added in v0.2.9
NonInteractiveCommand creates the command string from a flagSet to be used for getting the equivalent non-interactive shell command
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.