remove

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package remove provides the worktree remove command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdRemove

func NewCmdRemove(f *cmdutil.Factory, runF func(context.Context, *RemoveOptions) error) *cobra.Command

NewCmdRemove creates the worktree remove command.

Types

type RemoveOptions

type RemoveOptions struct {
	IOStreams  *iostreams.IOStreams
	GitManager func() (*git.GitManager, error)
	Config     func() *config.Config
	Prompter   func() *prompter.Prompter

	Force        bool
	DeleteBranch bool
	Branches     []string
}

RemoveOptions contains the options for the remove command.

Jump to

Keyboard shortcuts

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