Documentation
¶
Index ¶
- Constants
- Variables
- func ErrorText(text string) string
- func GetDomain(projectName string) string
- func InfoText(text string) string
- func IsMacOS() bool
- func IsWindows() bool
- func SuccessText(text string) string
- func WarningText(text string) string
- type ErrMsg
- type InfoMsg
- type Msg
- type RegularMsg
- type SuccessMsg
- type WarnMsg
Constants ¶
View Source
const ProgramName = "spinup"
View Source
const TLD = "test"
Variables ¶
View Source
var Version string
Functions ¶
func SuccessText ¶
Add a lipgloss success style to the given text.
func WarningText ¶
Add a lipgloss warning style to the given text.
Types ¶
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
Click to show internal directories.
Click to hide internal directories.