cmdutil

package
v1.0.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 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 GetSubtaskHandle added in v1.0.0

func GetSubtaskHandle(issueType string, issueTypes []*jira.IssueType) string

GetSubtaskHandle fetches actual subtask handle. This value can either be handle or name based on the used jira version.

func Info

func Info(msg string) *spinner.Spinner

Info displays spinner.

func Navigate(server, path string) error

Navigate navigates to jira issue.

func NormalizeJiraError added in v0.2.0

func NormalizeJiraError(msg string) string

NormalizeJiraError normalizes error message we receive from jira.

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.

func Warn added in v1.0.0

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

Warn prints warning message in stderr.

Types

This section is empty.

Jump to

Keyboard shortcuts

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