commands

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Config

func Config(args []string) error

Config handles configuration commands

func Delete

func Delete(args []string) error

Delete deletes a branch and its worktree

func Goto

func Goto(args []string) error

Goto navigates to a branch worktree

func IsDescendantOf

func IsDescendantOf(mgr *stack.Manager, branchName, ancestorName string) bool

IsDescendantOf checks if branchName is a descendant of ancestorName Exported for reuse by stack command

func List

func List(args []string) error

List lists all stacks and branches

func New

func New(args []string) error

New creates a new branch in the stack

func OfferForcePush added in v0.1.1

func OfferForcePush(branchName, worktreePath string) bool

OfferForcePush prompts the user to force push a branch with --force-with-lease Returns true if push was successful, false otherwise

func OfferForcePushMultiple added in v0.1.1

func OfferForcePushMultiple(branches []string, getBranchWorktree func(string) string) int

OfferForcePushMultiple prompts the user to force push multiple branches Returns the number of successfully pushed branches

func PR

func PR(args []string) error

PR handles pull request operations

func Reparent

func Reparent(args []string) error

Reparent changes the parent of a branch

func SelectNewParent

func SelectNewParent(mgr *stack.Manager, g *git.Git, branchName, baseBranch string) (string, error)

SelectNewParent shows a selection UI for choosing the new parent Exported for reuse by stack command

func Stack

func Stack(args []string) error

Stack adds a branch to a stack (alias for reparent with standalone branch)

func Status

func Status(args []string) error

Status shows the status of current stack or all stacks with PR and CI info

func Sync

func Sync(args []string) error

Sync syncs the stack with remote - handles merged parents and branches behind origin/main

func Unstack

func Unstack(args []string) error

Unstack removes a branch from ezstack tracking without deleting the git branch

func Update

func Update(args []string) error

Update reconciles ezstack config with git reality

func ValidateWorktreeBaseDir

func ValidateWorktreeBaseDir(worktreeBaseDir, repoDir string) error

ValidateWorktreeBaseDir validates that the worktree base directory is not inside the repo. Returns an error if the path is invalid, nil if valid.

Types

This section is empty.

Jump to

Keyboard shortcuts

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