format

package
v14.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package format formats data for printing to the CLI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(value bool) string

Bool converts the given bool into either "yes" or "no".

func BranchLineage

func BranchLineage(lineage configdomain.Lineage) string

BranchLineage provides printable formatting of the given branch lineage.

func BranchTree

func BranchTree(branch gitdomain.LocalBranchName, lineage configdomain.Lineage) string

BranchTree provids a printable version of the given branch tree.

func Indent

func Indent(message string) string

Indent outputs the given string with the given level of indentation on each line. Each level of indentation is two spaces.

func StringSetting

func StringSetting(text string) string

StringSetting provides a printable version of the given string configuration value.

func StringsSetting

func StringsSetting(text string) string

StringsSetting provides a printable version of the given []string configuration value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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