navigation

package
v0.17.14 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package navigation provides CLI commands for navigating branches in a stack.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBottomCmd

func NewBottomCmd() *cobra.Command

NewBottomCmd creates the bottom command

func NewCheckoutCmd

func NewCheckoutCmd() *cobra.Command

NewCheckoutCmd creates the checkout command

func NewCheckoutUI

func NewCheckoutUI(_ output.Output, _ output.Logger) (*tui.Runner, actions.CheckoutHandler)

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

func NewChildrenCmd() *cobra.Command

NewChildrenCmd creates the children command

func NewDownCmd

func NewDownCmd() *cobra.Command

NewDownCmd creates the down command

func NewLogCmd

func NewLogCmd() *cobra.Command

NewLogCmd creates the log command

func NewMainCmd

func NewMainCmd() *cobra.Command

NewMainCmd creates the main command

func NewParentCmd

func NewParentCmd() *cobra.Command

NewParentCmd creates the parent command

func NewTopCmd

func NewTopCmd() *cobra.Command

NewTopCmd creates the top command

func NewTrunkCmd

func NewTrunkCmd() *cobra.Command

NewTrunkCmd creates the trunk command

func NewUpCmd

func NewUpCmd() *cobra.Command

NewUpCmd creates the up command

Types

type InteractiveCheckoutHandler

type InteractiveCheckoutHandler struct{}

InteractiveCheckoutHandler provides interactive TUI for TTY environments

func (*InteractiveCheckoutHandler) SelectBranch

func (h *InteractiveCheckoutHandler) SelectBranch(ctx *app.Context, opts actions.CheckoutOptions) (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

Jump to

Keyboard shortcuts

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