ui

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// TitleStyle 标题样式
	TitleStyle = lipgloss.NewStyle().
				Bold(true).
				Foreground(lipgloss.Color("#7D56F4")).
				MarginBottom(1)

	// SelectedStyle 选中项样式
	SelectedStyle = lipgloss.NewStyle().
					Foreground(lipgloss.Color("#7D56F4")).
					Bold(true)

	// BorderStyle 边框样式
	BorderStyle = lipgloss.NewStyle().
				Border(lipgloss.RoundedBorder()).
				BorderForeground(lipgloss.Color("#7D56F4")).
				Padding(1, 2)

	// SuccessStyle 成功消息样式
	SuccessStyle = lipgloss.NewStyle().
					Foreground(lipgloss.Color("#04B575")).
					Bold(true)

	// ErrorStyle 错误消息样式
	ErrorStyle = lipgloss.NewStyle().
				Foreground(lipgloss.Color("#FF5F87")).
				Bold(true)

	// InfoStyle 信息样式
	InfoStyle = lipgloss.NewStyle().
				Foreground(lipgloss.Color("#7D56F4"))

	// HelpStyle 帮助文本样式
	HelpStyle = lipgloss.NewStyle().
				Foreground(lipgloss.Color("240"))

	// PromptStyle 提示符样式
	PromptStyle = lipgloss.NewStyle().
				Foreground(lipgloss.Color("#7D56F4")).
				Bold(true)
)

Functions

func ConfirmAddMessage

func ConfirmAddMessage() (bool, error)

ConfirmAddMessage 询问是否添加 tag message

func ConfirmCreateTag

func ConfirmCreateTag(oldVersion, newVersion, message string) (bool, error)

ConfirmCreateTag 确认创建 tag

func ConfirmPush

func ConfirmPush(version string) (bool, error)

ConfirmPush 确认推送 tag

func InputTagMessage

func InputTagMessage(defaultText string) (string, error)

InputTagMessage 输入 tag message

func SelectBumpType

func SelectBumpType(currentVersion, patchVersion, minorVersion, majorVersion string) (string, error)

SelectBumpType 选择版本更新类型

Types

This section is empty.

Jump to

Keyboard shortcuts

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