internal

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Reset  = "\033[0m"
	Green  = "\033[32m"
	Orange = "\033[33m"
	Red    = "\033[31m"
	Gray   = "\033[90m"
	Bold   = "\033[1m"
)
View Source
const (
	TopLeft     = "╭"
	TopRight    = "╮"
	BottomLeft  = "╰"
	BottomRight = "╯"
	Horizontal  = "─"
	Vertical    = "│"
)

Variables

This section is empty.

Functions

func GenerateCompletions added in v0.6.3

func GenerateCompletions(shell string) error

func GenerateNextSemanticVersion added in v0.5.0

func GenerateNextSemanticVersion(currentTag, versionType string) (string, error)

func IsGitRepository

func IsGitRepository() (bool, error)

func ParseSemanticVersion added in v0.5.0

func ParseSemanticVersion(tag string) (major, minor, patch int, prefix string, err error)

func PrintHelp

func PrintHelp()

func PrintVersion

func PrintVersion(checkForUpdate bool, version string, commit string, date string, builtBy string)

func Update added in v0.8.3

func Update() error

func UpdateOnInit added in v0.9.0

func UpdateOnInit(skip bool) tea.Cmd

func UpdateRepo

func UpdateRepo() error

Types

type ActionModel added in v0.9.0

type ActionModel struct {
	Actions        []string
	SelectedAction string
}

type BranchModel added in v0.9.0

type BranchModel struct {
	Actions        []string
	SelectedAction string
	Branches       []string
	SelectedBranch string
	Options        []string
	SelectedOption string
	Input          string
}

type CommitModel added in v0.9.0

type CommitModel struct {
	Actions        []string
	SelectedAction string
	CommitPrefixes []string
	SelectedPrefix string
	CommitMessage  string
}

type ConfigModel added in v0.9.0

type ConfigModel struct {
	Actions           []string
	SelectedAction    string
	Flavors           []string
	SelectedFlavor    string
	Accents           []string
	SelectedAccent    string
	InitBehaviours    []string
	SelectedBehaviour string
}

type Model added in v0.9.0

type Model struct {
	CurrentStep   Step
	Loading       bool
	Selected      int
	ActionModel   ActionModel
	BranchModel   BranchModel
	CommitModel   CommitModel
	RemoteModel   RemoteModel
	TagModel      TagModel
	ConfigModel   ConfigModel
	CurrentConfig *config.Config
	Spinner       spinner.Model
	Level         int
	Output        []string
	Err           string
	Success       string
	StartAt       string
	StartAtLevel  int
}

func (*Model) ExecuteBranchAction added in v0.9.0

func (m *Model) ExecuteBranchAction() (*Model, tea.Cmd)

func (*Model) ExecuteRemoteAction added in v0.9.0

func (m *Model) ExecuteRemoteAction() (*Model, tea.Cmd)

func (*Model) ExecuteStatus added in v0.9.0

func (m *Model) ExecuteStatus() (*Model, tea.Cmd)

func (*Model) ExecuteTagAction added in v0.9.0

func (m *Model) ExecuteTagAction() (*Model, tea.Cmd)

func (Model) HandleActionSelection added in v0.9.0

func (m Model) HandleActionSelection() (tea.Model, tea.Cmd)

func (Model) HandleBranchActionSelection added in v0.9.0

func (m Model) HandleBranchActionSelection() (tea.Model, tea.Cmd)

func (Model) HandleBranchCreateSelection added in v0.9.0

func (m Model) HandleBranchCreateSelection() (tea.Model, tea.Cmd)

func (*Model) HandleBranchInputSubmit added in v0.9.0

func (m *Model) HandleBranchInputSubmit() (*Model, tea.Cmd)

function to handle manual branch input submission

func (*Model) HandleBranchOperation added in v0.9.0

func (m *Model) HandleBranchOperation() (*Model, tea.Cmd)

func (Model) HandleBranchSelection added in v0.9.0

func (m Model) HandleBranchSelection() (tea.Model, tea.Cmd)

func (*Model) HandleCommitMessageSubmit added in v0.9.0

func (m *Model) HandleCommitMessageSubmit() (*Model, tea.Cmd)

function to handle commit message submission

func (Model) HandleCommitPrefixSelection added in v0.9.0

func (m Model) HandleCommitPrefixSelection() (tea.Model, tea.Cmd)

func (Model) HandleCommitSelection added in v0.9.0

func (m Model) HandleCommitSelection() (tea.Model, tea.Cmd)

func (Model) HandleOptionsAccentSelection added in v0.9.0

func (m Model) HandleOptionsAccentSelection() (tea.Model, tea.Cmd)

func (Model) HandleOptionsActionSelection added in v0.9.0

func (m Model) HandleOptionsActionSelection() (tea.Model, tea.Cmd)

func (Model) HandleOptionsFlavorSelection added in v0.9.0

func (m Model) HandleOptionsFlavorSelection() (tea.Model, tea.Cmd)

func (Model) HandleOptionsInitBehaviourSelection added in v0.10.0

func (m Model) HandleOptionsInitBehaviourSelection() (tea.Model, tea.Cmd)

func (Model) HandleRemoteActionSelection added in v0.9.0

func (m Model) HandleRemoteActionSelection() (tea.Model, tea.Cmd)

func (*Model) HandleRemoteOperation added in v0.9.0

func (m *Model) HandleRemoteOperation() (*Model, tea.Cmd)

func (Model) HandleRemoteSelection added in v0.9.0

func (m Model) HandleRemoteSelection() (tea.Model, tea.Cmd)

func (Model) HandleTagActionSelection added in v0.9.0

func (m Model) HandleTagActionSelection() (tea.Model, tea.Cmd)

func (Model) HandleTagAddSelection added in v0.9.0

func (m Model) HandleTagAddSelection() (tea.Model, tea.Cmd)

func (Model) HandleTagInputSubmit added in v0.9.0

func (m Model) HandleTagInputSubmit() (tea.Model, tea.Cmd)

function to handle manual tag input submission

func (*Model) HandleTagOperation added in v0.9.0

func (m *Model) HandleTagOperation() (*Model, tea.Cmd)

func (Model) HandleTagSelection added in v0.9.0

func (m Model) HandleTagSelection() (tea.Model, tea.Cmd)

func (Model) Init added in v0.9.0

func (m Model) Init() tea.Cmd

func (*Model) LoadAllTags added in v0.9.0

func (m *Model) LoadAllTags() (*Model, tea.Cmd)

func (*Model) OutputByLevel added in v0.9.0

func (m *Model) OutputByLevel(out string)

func (*Model) PopulateBranches added in v0.10.2

func (m *Model) PopulateBranches() (tea.Model, tea.Cmd)

func (*Model) PrepareBranchAddition added in v0.9.0

func (m *Model) PrepareBranchAddition() (*Model, tea.Cmd)

func (*Model) PrepareRemoteSelection added in v0.9.0

func (m *Model) PrepareRemoteSelection() (*Model, tea.Cmd)

func (*Model) PrepareTagAddition added in v0.9.0

func (m *Model) PrepareTagAddition() (*Model, tea.Cmd)

func (*Model) PrepareTagSelection added in v0.9.0

func (m *Model) PrepareTagSelection() (*Model, tea.Cmd)

func (Model) Update added in v0.9.0

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Model) View added in v0.9.0

func (m Model) View() string

View renders the entire UI based on the current model state.

type RemoteModel added in v0.9.0

type RemoteModel struct {
	Actions        []string
	SelectedAction string
	Options        []string
	SelectedOption string
	NameInput      string
	UrlInput       string
}

type RepoUpdateErrorMsg added in v0.9.0

type RepoUpdateErrorMsg struct{}

type RepoUpdatedMsg added in v0.9.0

type RepoUpdatedMsg struct{}

type Step added in v0.9.0

type Step int
const (
	StepLoad Step = iota
	StepAction

	StepBranchAction
	StepBranchSelect
	StepBranchCreate
	StepBranchInput

	StepCommitAction
	StepCommitSelectPrefix
	StepCommitInput

	StepTag
	StepTagSelect
	StepTagAdd
	StepTagInput

	StepRemote
	StepRemoteSelect
	StepRemoteNameInput
	StepRemoteUrlInput

	StepChanges

	StepOptions
	StepOptionsFlavorSelect
	StepOptionsAccentSelect
	StepOptionsInitBehaviourSelect
)

type TagModel added in v0.9.0

type TagModel struct {
	Actions        []string
	SelectedAction string
	Options        []string
	SelectedOption string
	AddOptions     []string
	SelectedAddTag string
	CurrentTag     string
	ManualInput    string
}

type VersionComparison added in v0.3.2

type VersionComparison struct {
	Current     string
	Latest      string
	Difference  string // "same", "patch", "minor", "major", "dev", "invalid"
	Color       string
	Message     string
	ShowUpgrade bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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