Documentation
¶
Overview ¶
Package rename implements the rename command, which renames the current branch and updates the stack metadata referencing it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Deps ¶
Deps are the collaborators rename needs. Adapters build them from their own runtime state; the action never sees bootstrap types.
type Engine ¶
type Engine interface {
validation.BranchValidationEngine
AllBranches() engine.Branches
UpsertPrInfo(ctx context.Context, branch engine.Branch, prInfo *engine.PrInfo) error
RenameBranch(ctx context.Context, oldBranch, newBranch engine.Branch) error
}
Engine lists exactly the engine methods rename calls.
type Handler ¶
type Handler interface {
// PromptNewName asks the user for a new branch name, given the current one.
// Implementations should return an error when prompting is not possible
// (e.g. non-interactive mode).
PromptNewName(currentName string) (string, error)
}
Handler supplies a new branch name interactively when one is not given on the command line. The CLI adapter implements it; the action layer does not import the TUI.
Click to show internal directories.
Click to hide internal directories.