Help us shape the future of Go! Take the 2026 Go Developer Survey

ui

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ScenarioTitleStyle = lipgloss.NewStyle().
						Foreground(lipgloss.Color("#6CB6FF")).
						Align(lipgloss.Center).
						Bold(true).
						Underline(true)
	StepTitleStyle = lipgloss.NewStyle().
					Foreground(lipgloss.Color("#518BAD")).
					Align(lipgloss.Left).
					Bold(true)
	SpinnerStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#518BAD"))
	VerboseStyle = lipgloss.NewStyle().
					Foreground(lipgloss.Color("#437684")).
					Align(lipgloss.Left)
	CheckStyle           = lipgloss.NewStyle().Foreground(lipgloss.Color("#32CD32"))
	ErrorStyle           = lipgloss.NewStyle().Foreground(lipgloss.Color("#FF0000"))
	ErrorMessageStyle    = lipgloss.NewStyle().Foreground(lipgloss.Color("#FF5733"))
	OcdStatusUpdateStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#000000"))
)

Styles used for rendering output to the terminal.

View Source
var (
	InteractiveModeCodeBlockDescriptionStyle = lipgloss.NewStyle().
												Foreground(lipgloss.Color("#ffffff"))
	InteractiveModeCodeBlockStyle = lipgloss.NewStyle().
									Foreground(lipgloss.Color("#fff"))

	InteractiveModeStepTitleStyle = func() lipgloss.Style {
		b := lipgloss.RoundedBorder()
		b.Right = "├"
		return lipgloss.NewStyle().BorderStyle(b).Padding(0, 1)
	}().Foreground(lipgloss.Color("#518BAD")).Bold(true)

	InteractiveModeStepFooterStyle = func() lipgloss.Style {
		b := lipgloss.RoundedBorder()
		b.Left = "┤"
		return InteractiveModeStepTitleStyle.Copy().BorderStyle(b)
	}().Foreground(lipgloss.Color("#fff"))
)

Functions

func CommandPrompt added in v0.1.1

func CommandPrompt(language string) string

Command prompt for interactive environments

func IndentMultiLineCommand added in v0.1.0

func IndentMultiLineCommand(content string, indentation int) string

Indents a multi-line command to be nested under the first line of the command.

func RemoveHorizontalAlign

func RemoveHorizontalAlign(s string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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