utils

package
v0.0.0-...-aad98f2 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewQueryFromFlags

func NewQueryFromFlags(flags *pflag.FlagSet) zube.Query

Constructs a zube `Query` from Cobra flags

func PrintCard

func PrintCard(account *models.Account, project *models.Project, card *models.Card)

func PrintCards

func PrintCards(cards *[]models.Card)

func PrintComments

func PrintComments(comments *[]models.Comment)

func PrintEpics

func PrintEpics(epics *[]models.Epic)

func PrintItems

func PrintItems(items interface{})

PrintItems prints a slice of items in a formatted table

func PrintLabels

func PrintLabels(labels *[]models.Label)

func PrintProjects

func PrintProjects(projects *[]models.Project)

func PrintSources

func PrintSources(sources *[]models.Source)

func PrintSprints

func PrintSprints(sprints *[]models.Sprint)

func PrintWorkspaces

func PrintWorkspaces(workspaces *[]models.Workspace)

func SnakeCaseToTitleCase

func SnakeCaseToTitleCase(s string) string

Converts a snake case string (e.g. `in_progress`) to title case (e.g. `In Progress`)

func StringPrompt

func StringPrompt(label string) string

StringPrompt asks for a string value using the label

func TruncateString

func TruncateString(s string, maxLen int) string

Returns a string truncated to the given `maxLen`

Types

This section is empty.

Jump to

Keyboard shortcuts

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