common

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppInstalled added in v0.8.2

func AppInstalled() bool

func ErrorText

func ErrorText(text string) string

Add a lipgloss error style to the given text.

func InfoText

func InfoText(text string) string

Add a lipgloss info style to the given text.

func IsWindows added in v0.8.1

func IsWindows() bool

func SuccessText

func SuccessText(text string) string

Add a lipgloss success style to the given text.

func WarningText

func WarningText(text string) string

Add a lipgloss warning style to the given text.

Types

type ErrMsg

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

func NewErrMsg

func NewErrMsg(text string, a ...any) *ErrMsg

func (*ErrMsg) GetText

func (m *ErrMsg) GetText() string

type InfoMsg

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

func NewInfoMsg

func NewInfoMsg(text string, a ...any) *InfoMsg

func (*InfoMsg) GetText

func (m *InfoMsg) GetText() string

type Msg

type Msg interface {
	GetText() string
}

Msg is an interface for messages that can be printed to the output.

type RegularMsg

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

func NewRegularMsg

func NewRegularMsg(text string, a ...any) *RegularMsg

func (*RegularMsg) GetText

func (m *RegularMsg) GetText() string

type SuccessMsg

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

func NewSuccessMsg

func NewSuccessMsg(text string, a ...any) *SuccessMsg

func (*SuccessMsg) GetText

func (m *SuccessMsg) GetText() string

type WarnMsg

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

func NewWarnMsg

func NewWarnMsg(text string, a ...any) *WarnMsg

func (*WarnMsg) GetText

func (m *WarnMsg) GetText() string

Jump to

Keyboard shortcuts

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