styles

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CarapaceBin = struct {
	HttpStatusInformational string `description:"http informational" tag:"http status styles"`
	HttpStatusSuccessful    string `description:"http successful" tag:"http status styles"`
	HttpStatusRedirection   string `description:"http redirection" tag:"http status styles"`
	HttpStatusClientError   string `description:"http client error" tag:"http status styles"`
	HttpStatusServerError   string `description:"http server error" tag:"http status styles"`

	HttpMethodCONNECT string `description:"http CONNECT method" tag:"http method styles"`
	HttpMethodDELETE  string `description:"http DELETE method" tag:"http method styles"`
	HttpMethodGET     string `description:"http GET method" tag:"http method styles"`
	HttpMethodHEAD    string `description:"http HEAD method" tag:"http method styles"`
	HttpMethodOPTIONS string `description:"http OPTIONS method" tag:"http method styles"`
	HttpMethodPATCH   string `description:"http PATCH method" tag:"http method styles"`
	HttpMethodPOST    string `description:"http POST method" tag:"http method styles"`
	HttpMethodPUT     string `description:"http PUT method" tag:"http method styles"`
	HttpMethodTRACE   string `description:"http TRACE method" tag:"http method styles"`

	KillSignalTerm string `description:"Default action is to terminate the process" tag:"kill signal styles"`
	KillSignalIgn  string `description:"Default action is to ignore the signal" tag:"kill signal styles"`
	KillSignalCore string `description:"Default action is to terminate the process and dump core" tag:"kill signal styles"`
	KillSignalStop string `description:"Default action is to stop the proces" tag:"kill signal styles"`
	KillSignalCont string `description:"Default action is to continue the process if it is currently stopped" tag:"kill signal styles"`
}{
	HttpStatusInformational: style.Blue,
	HttpStatusSuccessful:    style.Green,
	HttpStatusRedirection:   style.Yellow,
	HttpStatusClientError:   style.Red,
	HttpStatusServerError:   style.Magenta,

	HttpMethodCONNECT: style.Default,
	HttpMethodDELETE:  style.Red,
	HttpMethodGET:     style.Blue,
	HttpMethodHEAD:    style.Magenta,
	HttpMethodOPTIONS: style.Of(style.Dim, style.Blue),
	HttpMethodPATCH:   style.Green,
	HttpMethodPOST:    style.Of(style.Dim, style.Green),
	HttpMethodPUT:     style.Yellow,
	HttpMethodTRACE:   style.Default,

	KillSignalTerm: style.Red,
	KillSignalIgn:  style.Blue,
	KillSignalCore: style.Magenta,
	KillSignalStop: style.Yellow,
	KillSignalCont: style.Green,
}
View Source
var Docker = struct {
	Container string `description:"docker containers"`
	Image     string `description:"docker images"`
	Network   string `description:"docker networks"`
	Node      string `description:"docker nodes"`
	Secret    string `description:"docker secrets"`
	Service   string `description:"docker services"`
	Volume    string `description:"docker volumes"`
}{
	Container: style.Blue,
	Image:     style.Yellow,
	Network:   style.Magenta,
	Node:      style.Cyan,
	Secret:    style.Underlined,
	Service:   style.Green,
	Volume:    style.Bold,
}
View Source
var Gh = gh{
	Draft:             style.Of(style.Dim, style.White),
	JobFailed:         style.Red,
	JobInProgress:     style.Yellow,
	JobSuccess:        style.Green,
	OwnerOrganization: style.Blue,
	OwnerUser:         style.Default,
	RepoArchived:      style.Magenta,
	RepoFork:          style.Of(style.Dim, style.White),
	RepoLocked:        style.Bold,
	RepoMirror:        style.Cyan,
	RepoPrivate:       style.Red,
	RepoPublic:        style.Default,
	RepoTemplate:      style.Yellow,
	StateClosed:       style.Red,
	StateMerged:       style.Magenta,
	StateOpen:         style.Green,
}
View Source
var Git = struct {
	Branch     string `description:"git branches"`
	Commit     string `description:"git commits"`
	HeadCommit string `description:"git HEAD~ commits"`
	Note       string `description:"git notes"`
	Stash      string `description:"git stashes"`
	Tag        string `description:"git tags"`
}{
	Branch:     style.Blue,
	Commit:     style.Default,
	HeadCommit: style.Bold,
	Note:       style.Cyan,
	Stash:      style.Green,
	Tag:        style.Yellow,
}
View Source
var Golang = struct {
	Constant string `description:"go constant"`
	Field    string `description:"go field"`
	Function string `description:"go function"`
	Type     string `description:"go type"`
	Variable string `description:"go variable"`
}{
	Constant: style.Magenta,
	Field:    style.Green,
	Function: style.Blue,
	Type:     style.Yellow,
	Variable: style.Default,
}
View Source
var Tea = tea{
	StateClosed: style.Red,
	StateMerged: style.Magenta,
	StateOpen:   style.Green,
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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