cmdutils

package
v0.1.19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2020 License: MIT Imports: 6 Imported by: 0

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

func ExitWithError(message string, exitCode int)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL