common

package
v0.13.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const ProgramName = "spinup"
View Source
const TLD = "test"

Variables

View Source
var Version string

Functions

func ErrorText

func ErrorText(text string) string

Add a lipgloss error style to the given text.

func GetDomain added in v0.13.0

func GetDomain(projectName string) string

func InfoText

func InfoText(text string) string

Add a lipgloss info style to the given text.

func IsMacOS added in v0.9.2

func IsMacOS() bool

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