Documentation
¶
Overview ¶
Package navigation provides CLI commands for navigating branches in a stack.
Index ¶
- func NewBottomCmd() *cobra.Command
- func NewCheckoutCmd() *cobra.Command
- func NewCheckoutUI(appCtx *app.Context) (*tui.Runner, checkout.Handler)
- func NewChildrenCmd() *cobra.Command
- func NewDownCmd() *cobra.Command
- func NewLogCmd() *cobra.Command
- func NewMainCmd() *cobra.Command
- func NewParentCmd() *cobra.Command
- func NewPrCmd() *cobra.Command
- func NewShareCmd() *cobra.Command
- func NewTopCmd() *cobra.Command
- func NewTreeCmd() *cobra.Command
- func NewTreeShortAliasCmd() *cobra.Command
- func NewTrunkCmd() *cobra.Command
- func NewUpCmd() *cobra.Command
- func RunTree(ctx *app.Context, opts actions.TreeOptions) error
- type InteractiveCheckoutHandler
- type SimpleCheckoutHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCheckoutCmd ¶
NewCheckoutCmd creates the checkout command
func NewCheckoutUI ¶
NewCheckoutUI creates a runner and handler pair for checkout operations. The runner manages terminal state; the handler processes events. Caller must defer runner.Cleanup() to restore terminal on exit. Currently returns nil runner as interactive selection is handled inline.
func NewChildrenCmd ¶
NewChildrenCmd creates the children command
func NewShareCmd ¶ added in v0.19.0
NewShareCmd creates the share command.
func NewTreeCmd ¶ added in v0.20.0
NewTreeCmd creates the tree command
func NewTreeShortAliasCmd ¶ added in v0.20.0
NewTreeShortAliasCmd creates the short tree alias used as `st t`.
Types ¶
type InteractiveCheckoutHandler ¶
type InteractiveCheckoutHandler struct {
// contains filtered or unexported fields
}
InteractiveCheckoutHandler provides interactive TUI for TTY environments
func (*InteractiveCheckoutHandler) SelectBranch ¶
func (h *InteractiveCheckoutHandler) SelectBranch(ctx context.Context, opts checkout.Options) (string, error)
SelectBranch prompts the user to select a branch using the interactive log selector
type SimpleCheckoutHandler ¶
type SimpleCheckoutHandler struct{}
SimpleCheckoutHandler provides non-interactive output for non-TTY environments
func (*SimpleCheckoutHandler) SelectBranch ¶
SelectBranch returns an error since interactive selection is not available in non-TTY mode