pieces

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Piece

type Piece struct {
	Content string
	FG      color.Color
	BG      color.Color
}

Piece makes up a small part of the PS1 line

func Build

func Build(statuses []string) (pieces []Piece)

Build calls each function, joining together the results

func Convert

func Convert(th themes.Piece) *Piece

Convert a theme Piece to a Piece with the right color scheme

Jump to

Keyboard shortcuts

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