Documentation
¶
Overview ¶
Package cmdutils contains shared functions for commands.
Note that these functions may trigger a process shutdown, DO NOT call these from any other place other than the command line interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExitWithError ¶
ExitWithError exits the application gracefully with the provided exit status :exitCode, printing both message and stack trace at the `error` level
func ExitWithStackTrace ¶
func ExitWithStackTrace(message string)
ExitWithStackTrace exits the application gracefully with exit status 0 while printing both message and stack trace at the 'trace' level
func GetGitRepoRootFromWorkingDirectory ¶
func GetGitRepoRootFromWorkingDirectory() string
GetGitRepoRootFromWorkingDirectory returns the full path of the child directory containing a ./.git directory from the current working directory
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.