commands

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckoutPRCommand

type CheckoutPRCommand struct{}

func (*CheckoutPRCommand) Execute

func (c *CheckoutPRCommand) Execute(args []string) error

type CleanCommand

type CleanCommand struct {
	Changes   *bool `long:"changes" description:"Discard staged and unstaged changes (default: true)"`
	Untracked *bool `long:"untracked" description:"Remove untracked files (default: true)"`
	Ignored   *bool `long:"ignored" description:"Remove ignored files (default: false)"`
	All       bool  `long:"all" description:"Enable all cleanup options"`
	Yes       bool  `short:"y" long:"yes" description:"Skip confirmation prompt"`
}

CleanCommand handles discarding working tree changes and untracked files

func (*CleanCommand) Execute

func (c *CleanCommand) Execute(args []string) error

type CompletionCommand

type CompletionCommand struct {
	Args struct {
		Shell string `positional-arg-name:"shell" description:"Shell type (fish, bash, or zsh)"`
	} `positional-args:"yes" required:"yes"`
	// contains filtered or unexported fields
}

func (*CompletionCommand) Execute

func (c *CompletionCommand) Execute(args []string) error

type DeleteCommand

type DeleteCommand struct{}

func (*DeleteCommand) Execute

func (d *DeleteCommand) Execute(args []string) error

type EmptyCommand

type EmptyCommand struct{}

func (*EmptyCommand) Execute

func (e *EmptyCommand) Execute(args []string) error

type PRRef

type PRRef struct {
	Number int
	Type   string // "head" or "merge"
}

type PushCommand

type PushCommand struct{}

func (*PushCommand) Execute

func (p *PushCommand) Execute(args []string) error

type ReleaseCommand

type ReleaseCommand struct {
	Args struct {
		Bump string `positional-arg-name:"BUMP" choice:"patch" choice:"minor" choice:"major" required:"yes"`
	} `positional-args:"yes"`
}

ReleaseCommand bumps the repo's VERSION (or falls back to the latest tag), commits the bump, and creates an annotated tag. Refuses unless on main with a clean working tree. Push is left manual so the result can be inspected.

func (*ReleaseCommand) Execute

func (r *ReleaseCommand) Execute(args []string) error

type ReplayListCommand

type ReplayListCommand struct {
	Args struct {
		BranchA string `positional-arg-name:"A" description:"Feature branch with commits to list"`
		BranchB string `positional-arg-name:"B" description:"Trunk/base branch"`
	} `positional-args:"yes" required:"yes"`
}

func (*ReplayListCommand) Execute

func (r *ReplayListCommand) Execute(args []string) error

type StatusCommand

type StatusCommand struct {
	// contains filtered or unexported fields
}

func (*StatusCommand) Execute

func (s *StatusCommand) Execute(args []string) error

type SwitchCommand

type SwitchCommand struct{}

func (*SwitchCommand) Execute

func (s *SwitchCommand) Execute(args []string) error

Jump to

Keyboard shortcuts

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