prefix

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Prefix

type Prefix struct {
	// contains filtered or unexported fields
}

func NewPrefix

func NewPrefix(cfg config.PrefixConfig) (*Prefix, error)

func (*Prefix) Add

func (p *Prefix) Add(name, command string, pid int, seq *config.Sequence) int

func (*Prefix) ApplyEvenPadding

func (p *Prefix) ApplyEvenPadding()

func (*Prefix) Render

func (p *Prefix) Render(idx int, withColor bool) string

type PrefixData

type PrefixData struct {
	Index   int
	Name    string
	Command string
	Pid     int
	Time    string
	Padding string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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