cmdutil

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExitIfError

func ExitIfError(err error)

ExitIfError exists with error message if err is not nil.

func Fail

func Fail(msg string, args ...interface{})

Fail prints failure message in stderr.

func Failed

func Failed(msg string, args ...interface{})

Failed prints failure message in stderr and exits.

func FormatDateTimeHuman

func FormatDateTimeHuman(dt, format string) string

FormatDateTimeHuman formats date time in human readable format.

func GetConfigHome

func GetConfigHome() (string, error)

GetConfigHome returns the config home directory.

func GetJiraIssueKey

func GetJiraIssueKey(project, key string) string

GetJiraIssueKey constructs actual issue key based on given key.

func Info

func Info(msg string) *spinner.Spinner

Info displays spinner.

func Navigate(server, path string) error

Navigate navigates to jira issue.

func ReadFile

func ReadFile(filePath string) ([]byte, error)

ReadFile reads contents of the given file.

func StdinHasData

func StdinHasData() bool

StdinHasData checks if standard input has any data to be processed.

func Success

func Success(msg string, args ...interface{})

Success prints success message in stdout.

Types

This section is empty.

Jump to

Keyboard shortcuts

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