clean

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReclaimOption         = "Reclaim disk space for this workspace (same as bazel clean)"
	ReclaimAllOption      = "Reclaim disk space for all Bazel workspaces"
	NonIncrementalOption  = "Prepare to perform a non-incremental build"
	InvalidateReposOption = "Invalidate all repository rules, causing them to recreate external repos"
	WorkaroundOption      = "Workaround inconsistent state in the output tree"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Clean

type Clean struct {
	ioutils.Streams

	Behavior   SelectRunner
	Workaround PromptRunner
	Remember   PromptRunner
	Prefs      viper.Viper

	Expunge      bool
	ExpungeAsync bool

	Filesystem filesystem.Filesystem
	// contains filtered or unexported fields
}

Clean represents the aspect clean command.

func New

func New(
	streams ioutils.Streams,
	bzl bazel.Bazel,
	isInteractiveMode bool) *Clean

New creates a Clean command.

func NewDefault

func NewDefault(streams ioutils.Streams, bzl bazel.Bazel, isInteractive bool) *Clean

func (*Clean) Run

func (c *Clean) Run(_ *cobra.Command, _ []string) error

Run runs the aspect build command.

type PromptRunner

type PromptRunner interface {
	Run() (string, error)
}

type SelectRunner

type SelectRunner interface {
	Run() (int, string, error)
}

Jump to

Keyboard shortcuts

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