Documentation
¶
Index ¶
- func CreateFile(filePath string) (*os.File, error)
- func CreateFolder(folderPath string) error
- func ExecCommand(name string, args ...string) error
- func FileExists(filePath string) bool
- func GenerateFileFromTemplate(filePath string, data any, tempContent string)
- func GetUserInput(prompt string, required bool, requiredMsg string) string
- func GetUserInputWithValidation(prompt string, required bool, requiredMsg string, validate func(string) bool, ...) string
- func GetYesOrNoInput(prompt string, defaultYes bool) bool
- func IsValidVersion(version string) bool
- func ProcessSlicesInput(input string) []string
- func ReadYamlFile[T any](filePath string) (T, error)
- func WriteYamlFile[T any](filePath string, data T) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateFolder ¶
func ExecCommand ¶
func GetUserInput ¶
Helper function to gather user input If required is true, it will keep asking for input until it gets a non-empty string. If requiredMsg is provided, it will print the message when input is required
func GetUserInputWithValidation ¶ added in v0.2.0
func GetYesOrNoInput ¶
Helper function to get yes/no input
func IsValidVersion ¶ added in v0.2.0
func ProcessSlicesInput ¶
Helper function to process modules input and remove duplicates
func ReadYamlFile ¶
Helper function to read .ebrick.yaml
func WriteYamlFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.