reset

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package reset provides the global reset command for unstaging all changes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command(cfg stgcli.GlobalConfig) *cli.Command

Command returns the global reset command for the given provider config.

Types

type Runner

type Runner struct {
	// Store, when set, is used for every service (a test seam). When nil each
	// service resolves its own working store via its spec's ScopeResolver.
	Store store.ReadWriteOperator
	// Services lists the provider services in stable display order.
	Services []stgcli.GlobalServiceSpec
	Stdout   io.Writer
	Stderr   io.Writer
}

Runner executes the reset command.

func (*Runner) Run

func (r *Runner) Run(ctx context.Context) error

Run executes the reset command. Each service is reset in its OWN store; a service whose scope is not configured is skipped (it can hold no staged state).

Jump to

Keyboard shortcuts

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