Documentation
¶
Index ¶
- func ExecuteShellCommand(ctx context.Context, command string, args []string, options ExecOptions) error
- func FileExists(filename string) bool
- func GetSystemDir() string
- func PrintError(err error)
- func PrintErrorToStdError(err error)
- func PrintErrorToStdErrorAndExit(err error)
- func PrintOrWriteToFile(format string, filePath string, data any, fileMode os.FileMode) error
- func ProcessTemplate(s string, vars map[string]any) (string, error)
- func StringInSlice(a string, list []string) bool
- type ExecOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteShellCommand ¶
func FileExists ¶
func GetSystemDir ¶
func GetSystemDir() string
func PrintErrorToStdError ¶
func PrintErrorToStdError(err error)
PrintErrorToStdError prints errors to std.Error
func PrintErrorToStdErrorAndExit ¶
func PrintErrorToStdErrorAndExit(err error)
PrintErrorToStdErrorAndExit prints errors to std.Error and exits with an error code
func PrintOrWriteToFile ¶
PrintOrWriteToFile converts the provided value to given format and writes it to the specified file
func StringInSlice ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.