prune

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package prune provides the worktree prune command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdPrune

func NewCmdPrune(f *cmdutil.Factory, runF func(context.Context, *PruneOptions) error) *cobra.Command

NewCmdPrune creates the worktree prune command.

Types

type PruneOptions

type PruneOptions struct {
	IOStreams      *iostreams.IOStreams
	ProjectManager func() (project.ProjectManager, error)

	DryRun bool
}

PruneOptions contains the options for the prune command.

Jump to

Keyboard shortcuts

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