Documentation
¶
Index ¶
- Constants
- func BranchActionSelect(action *string) *huh.Group
- func BranchPruneConfirm(nDeleted, nMerged int, confirmed *bool) *huh.Group
- func BranchStatusFilter(status *string, selected string) *huh.Group
- func CommitMessageGroup(commitTypes []config.CommitTypeOption, items []config.CommitItem, ...) *huh.Group
- func CommitOptionsGroup(opt *CommitOption) *huh.Group
- func IssueActionSelect(action *string) *huh.Group
- func IssueConfirm(confirmTitle string, confirmed *bool) *huh.Group
- func IssueInput(issueID, title, branchType *string, allowedBranchTypes []string) *huh.Group
- func IssueTrackerError(msg string) *huh.Group
- func IssueTrackerPicker(issues []tracker.Issue, selected *tracker.Issue, branchTypes []string, ...) *huh.Group
- func IssueTrackerToggle(useTracker *bool, trackerFirst bool, trackerType string) *huh.Group
- func IssueUpdateStatusConfirm(issueID, statusName, trackerType string, confirmed *bool) *huh.Group
- type CommitOption
Constants ¶
const ( BranchActionNameList = "branchList" BranchActionNameNew = "branchNew" BranchActionNameMerge = "branchMerge" BranchActionNamePrune = "branchPrune" )
const ( IssueActionNameStart = "issueStart" IssueActionNameList = "issueList" IssueActionNameClose = "issueClose" )
Variables ¶
This section is empty.
Functions ¶
func BranchActionSelect ¶
BranchActionSelect presents the list of available branch actions.
func BranchPruneConfirm ¶
BranchPruneConfirm asks whether to proceed with pruning nDeleted deleted and nMerged merged branch records.
func BranchStatusFilter ¶
BranchStatusFilter presents a status filter for the branch list. selected is the pre-selected value ("in_progress", "merged", or "all"); defaults to "in_progress" when empty.
func CommitMessageGroup ¶
func CommitMessageGroup(commitTypes []config.CommitTypeOption, items []config.CommitItem, selectedType *string) *huh.Group
CommitMessageGroup builds the first commit form group. The type select is always first, populated from commitTypes and writing into selectedType. Remaining fields come from items (scope, subject, body, footer).
func CommitOptionsGroup ¶
func CommitOptionsGroup(opt *CommitOption) *huh.Group
CommitOptionsGroup builds the second commit form group (author + commit flags). opt is written directly by the form fields.
func IssueActionSelect ¶
IssueActionSelect presents the list of available issue actions.
func IssueInput ¶
func IssueTrackerError ¶
IssueTrackerError shows an error note with a "Continue with manual input" button.
func IssueTrackerPicker ¶
func IssueTrackerPicker( issues []tracker.Issue, selected *tracker.Issue, branchTypes []string, branchType *string) *huh.Group
IssueTrackerPicker shows the live issue list and branch type selector.
func IssueTrackerToggle ¶
IssueTrackerToggle asks whether to fetch issues from the tracker. trackerFirst=true pre-selects YES (used for `issue start`); trackerFirst=false pre-selects NO (used for `branch new`).
Types ¶
type CommitOption ¶
type CommitOption struct {
Authors []string
Author string
All bool
Amend bool
NoVerify bool
Signoff bool
AllowEmpty bool
}
CommitOption holds commit option values for the commit options group of the TUI. Used both as flag-derived defaults (input) and as user selections (output).
func (CommitOption) AnyOptionSet ¶
func (o CommitOption) AnyOptionSet() bool
AnyOptionSet reports true if any commit-option flag was passed. When true, the CommitOptionsGroup of the TUI should be skipped.