format

package
v10.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2023 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 config.Lineage) string

BranchLineage provides printable formatting of the given branch lineage.

func BranchTree

func BranchTree(branch domain.LocalBranchName, lineage config.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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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