cmdhelpers

package
v14.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Long

func Long(summary string, desc ...string) string

Long automatically compiles the long description of Cobra commands out of the given short summary and description.

func Wrap

func Wrap(program *program.Program, options WrapOptions)

Wrap makes the given program perform housekeeping before and after it executes.

Types

type WrapOptions

type WrapOptions struct {
	DryRun                   bool
	PreviousBranchCandidates gitdomain.LocalBranchNames
	RunInGitRoot             bool
	StashOpenChanges         bool
}

WrapOptions represents the options given to Wrap.

Jump to

Keyboard shortcuts

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