Documentation
¶
Overview ¶
Package share implements the share command, which renders the current stack as Slack-flavored markdown for copy-pasting.
Index ¶
Constants ¶
const DefaultMarker = "👈"
DefaultMarker is appended to the current branch's line in shared output.
Variables ¶
This section is empty.
Functions ¶
func Action ¶
Action renders the current stack as Slack-flavored markdown (mrkdwn) suitable for copy-pasting into a Slack message. Each branch is emitted as a bullet: branches with an open PR become a clickable link (#<number> <title>), while branches without a PR fall back to their branch name so the stack is still complete before submit. Branches are listed base-first, mirroring the stack navigation footer that Stackit writes into PR bodies.
Types ¶
type Engine ¶
type Engine interface {
CurrentBranch(ctx context.Context) *engine.Branch
GetBranch(branchName string) engine.Branch
Graph(ctx context.Context, strategy engine.SortStrategy) *engine.StackGraph
BranchesDepthFirst(startBranch engine.Branch) iter.Seq2[engine.Branch, int]
}
Engine lists exactly the engine methods share calls.