Help us shape the future of Go! Take the 2026 Go Developer Survey

navigation

package
v0.27.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2026 License: MIT Imports: 26 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: a stack-aware view of trunk commit history.

func NewMainCmd

func NewMainCmd() *cobra.Command

NewMainCmd creates the main command

func NewParentCmd

func NewParentCmd() *cobra.Command

NewParentCmd creates the parent command

func NewPrCmd added in v0.24.0

func NewPrCmd() *cobra.Command

NewPrCmd creates the pr command.

func NewShareCmd added in v0.19.0

func NewShareCmd() *cobra.Command

NewShareCmd creates the share command.

func NewTopCmd

func NewTopCmd() *cobra.Command

NewTopCmd creates the top command

func NewTreeCmd added in v0.20.0

func NewTreeCmd() *cobra.Command

NewTreeCmd creates the tree command

func NewTreeShortAliasCmd added in v0.20.0

func NewTreeShortAliasCmd() *cobra.Command

NewTreeShortAliasCmd creates the short tree alias used as `st t`.

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