Documentation
¶
Index ¶
- func Amend(args []string) error
- func Commit(args []string) error
- func Config(args []string) error
- func Delete(args []string) error
- func Down(args []string) error
- func EmitCd(path string)
- func Goto(args []string) error
- func IsDescendantOf(mgr *stack.Manager, branchName, ancestorName string) bool
- func IsShellWrapped() bool
- func List(args []string) error
- func New(args []string) error
- func OfferForcePush(branchName, worktreePath string) bool
- func OfferForcePushMultiple(branches []string, getBranchWorktree func(string) string) int
- func PR(args []string) error
- func Reparent(args []string) error
- func SelectNewParent(mgr *stack.Manager, g *git.Git, branchName, baseBranch string) (string, error)
- func Stack(args []string) error
- func Status(args []string) error
- func Sync(args []string) error
- func Unstack(args []string) error
- func Up(args []string) error
- func ValidateWorktreeBaseDir(worktreeBaseDir, repoDir string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EmitCd ¶ added in v1.1.1
func EmitCd(path string)
EmitCd outputs a cd command to stdout if running through the shell wrapper, otherwise prints a message to stderr telling the user to cd manually.
func IsDescendantOf ¶
IsDescendantOf checks if branchName is a descendant of ancestorName Exported for reuse by stack command
func IsShellWrapped ¶ added in v1.1.1
func IsShellWrapped() bool
IsShellWrapped returns true if ezs is running through the shell wrapper function. When true, stdout "cd <path>" will be eval'd by the shell. When false, the tool should print the path to stderr and tell the user to cd manually.
func OfferForcePush ¶ added in v0.1.1
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
OfferForcePushMultiple prompts the user to force push multiple branches Returns the number of successfully pushed branches
func SelectNewParent ¶
SelectNewParent shows a selection UI for choosing the new parent Exported for reuse by stack command
func Sync ¶
Sync syncs the stack with remote - handles merged parents and branches behind origin/main
func ValidateWorktreeBaseDir ¶
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.