Documentation
¶
Index ¶
- Constants
- func GenerateCompletions(shell string) error
- func GenerateNextSemanticVersion(currentTag, versionType string) (string, error)
- func IsGitRepository() (bool, error)
- func ParseSemanticVersion(tag string) (major, minor, patch int, prefix string, err error)
- func PrintHelp()
- func PrintVersion(checkForUpdate bool, version string, commit string, date string, ...)
- func Update() error
- func UpdateOnInit(skip bool) tea.Cmd
- func UpdateRepo() error
- type ActionModel
- type BranchModel
- type CommitModel
- type ConfigModel
- type Model
- func (m *Model) ExecuteBranchAction() (*Model, tea.Cmd)
- func (m *Model) ExecuteRemoteAction() (*Model, tea.Cmd)
- func (m *Model) ExecuteStatus() (*Model, tea.Cmd)
- func (m *Model) ExecuteTagAction() (*Model, tea.Cmd)
- func (m Model) HandleActionSelection() (tea.Model, tea.Cmd)
- func (m Model) HandleBranchActionSelection() (tea.Model, tea.Cmd)
- func (m Model) HandleBranchCreateSelection() (tea.Model, tea.Cmd)
- func (m *Model) HandleBranchInputSubmit() (*Model, tea.Cmd)
- func (m *Model) HandleBranchOperation() (*Model, tea.Cmd)
- func (m Model) HandleBranchSelection() (tea.Model, tea.Cmd)
- func (m *Model) HandleCommitMessageSubmit() (*Model, tea.Cmd)
- func (m Model) HandleCommitPrefixSelection() (tea.Model, tea.Cmd)
- func (m Model) HandleCommitSelection() (tea.Model, tea.Cmd)
- func (m Model) HandleOptionsAccentSelection() (tea.Model, tea.Cmd)
- func (m Model) HandleOptionsActionSelection() (tea.Model, tea.Cmd)
- func (m Model) HandleOptionsFlavorSelection() (tea.Model, tea.Cmd)
- func (m Model) HandleOptionsInitBehaviourSelection() (tea.Model, tea.Cmd)
- func (m Model) HandleRemoteActionSelection() (tea.Model, tea.Cmd)
- func (m *Model) HandleRemoteOperation() (*Model, tea.Cmd)
- func (m Model) HandleRemoteSelection() (tea.Model, tea.Cmd)
- func (m Model) HandleTagActionSelection() (tea.Model, tea.Cmd)
- func (m Model) HandleTagAddSelection() (tea.Model, tea.Cmd)
- func (m Model) HandleTagInputSubmit() (tea.Model, tea.Cmd)
- func (m *Model) HandleTagOperation() (*Model, tea.Cmd)
- func (m Model) HandleTagSelection() (tea.Model, tea.Cmd)
- func (m Model) Init() tea.Cmd
- func (m *Model) LoadAllTags() (*Model, tea.Cmd)
- func (m *Model) OutputByLevel(out string)
- func (m *Model) PopulateBranches() (tea.Model, tea.Cmd)
- func (m *Model) PrepareBranchAddition() (*Model, tea.Cmd)
- func (m *Model) PrepareRemoteSelection() (*Model, tea.Cmd)
- func (m *Model) PrepareTagAddition() (*Model, tea.Cmd)
- func (m *Model) PrepareTagSelection() (*Model, tea.Cmd)
- func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (m Model) View() string
- type RemoteModel
- type RepoUpdateErrorMsg
- type RepoUpdatedMsg
- type Step
- type TagModel
- type VersionComparison
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 GenerateNextSemanticVersion ¶ added in v0.5.0
func IsGitRepository ¶
func ParseSemanticVersion ¶ added in v0.5.0
func PrintVersion ¶
func UpdateOnInit ¶ added in v0.9.0
func UpdateRepo ¶
func UpdateRepo() error
Types ¶
type ActionModel ¶ added in v0.9.0
type BranchModel ¶ added in v0.9.0
type CommitModel ¶ added in v0.9.0
type ConfigModel ¶ added in v0.9.0
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 (*Model) ExecuteRemoteAction ¶ added in v0.9.0
func (*Model) ExecuteTagAction ¶ added in v0.9.0
func (Model) HandleActionSelection ¶ added in v0.9.0
func (Model) HandleBranchActionSelection ¶ added in v0.9.0
func (Model) HandleBranchCreateSelection ¶ added in v0.9.0
func (*Model) HandleBranchInputSubmit ¶ added in v0.9.0
function to handle manual branch input submission
func (*Model) HandleBranchOperation ¶ added in v0.9.0
func (Model) HandleBranchSelection ¶ added in v0.9.0
func (*Model) HandleCommitMessageSubmit ¶ added in v0.9.0
function to handle commit message submission
func (Model) HandleCommitPrefixSelection ¶ added in v0.9.0
func (Model) HandleCommitSelection ¶ added in v0.9.0
func (Model) HandleOptionsAccentSelection ¶ added in v0.9.0
func (Model) HandleOptionsActionSelection ¶ added in v0.9.0
func (Model) HandleOptionsFlavorSelection ¶ added in v0.9.0
func (Model) HandleOptionsInitBehaviourSelection ¶ added in v0.10.0
func (Model) HandleRemoteActionSelection ¶ added in v0.9.0
func (*Model) HandleRemoteOperation ¶ added in v0.9.0
func (Model) HandleRemoteSelection ¶ added in v0.9.0
func (Model) HandleTagActionSelection ¶ added in v0.9.0
func (Model) HandleTagAddSelection ¶ added in v0.9.0
func (Model) HandleTagInputSubmit ¶ added in v0.9.0
function to handle manual tag input submission
func (*Model) HandleTagOperation ¶ added in v0.9.0
func (Model) HandleTagSelection ¶ added in v0.9.0
func (*Model) OutputByLevel ¶ added in v0.9.0
func (*Model) PopulateBranches ¶ added in v0.10.2
func (*Model) PrepareBranchAddition ¶ added in v0.9.0
func (*Model) PrepareRemoteSelection ¶ added in v0.9.0
func (*Model) PrepareTagAddition ¶ added in v0.9.0
func (*Model) PrepareTagSelection ¶ added in v0.9.0
type RemoteModel ¶ added in v0.9.0
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 )
Source Files
¶
Click to show internal directories.
Click to hide internal directories.