package
5.0.0+incompatible
Repository: https://github.com/keysolutions/git-town.git
Documentation: pkg.go.dev
# Functions
DoesCommandOuputContain runs the given command and returns whether its output contains the given string.
DoesCommandOuputContainLine runs the given command and returns whether its output contains the given string as an entire line.
DoesFileExist returns whether or not a file exists at the given path.
DoesStringArrayContain returns whether the given string slice contains the given string.
Ensure asserts that the given condition is true.
ExitWithErrorMessage prints the given error message and terminates the application.
FirstError collects errors.
GetCommandOutput runs the given command and returns its output.
GetFullCommandOutput runs the given command and returns its output and error.
GetOpenBrowserCommand returns the command to run on the console to open the default browser.
GetUserInput reads input from the user and returns it.
Indent outputs the given string with the given level of indentation on each line.
Pluralize outputs the count and the word.
PrintError prints the given error message to the console.
PrintLabelAndValue prints the label bolded and underlined the value indented on the next line followed by an empty line.
RemoveStringFromSlice returns a new string slice which is the given string slice with the given string removed.
StringToBool parses the given string into a bool.