section

package
v0.0.0-...-a805598 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Section

type Section struct {
	Type      string
	Name      string `long:"name" description:"name of the section"`
	Result    int    `long:"result" description:"exitCode code for section"`
	OnSuccess string `long:"on-success" description:"optional message for successful subcommand"`
	OnFailure string `long:"on-failure" description:"optional message for failed subcommand"`
	NoColor   bool   `long:"no-color" description:"do not use colors"`
}

type SectionError

type SectionError struct {
	Retval int
	Err    error
}

func (*SectionError) Error

func (e *SectionError) Error() string

func (*SectionError) Unwrap

func (e *SectionError) Unwrap() error

type SectionOpt

type SectionOpt struct {
	Section
	Out   io.Writer
	Clock clock.Clock
	Exec  exec.Exec
}

func (*SectionOpt) Execute

func (opts *SectionOpt) Execute(args []string) error

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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