cmd

package
v0.75.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 46 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAttestationAlreadyExist = errors.New("attestation already initialized, to override it use the --replace flag`")
View Source
var ErrAttestationNotInitialized = errors.New("attestation not yet initialized, execute the init command first")
View Source
var ErrOutputFormatNotImplemented = errors.New("format not implemented")
View Source
var ErrRobotAccountRequired = errors.New("robot account token required, please provide it via the pre-defined env variable or command flag")
View Source
var (
	GracefulExit bool
)
View Source
var Version = devVersion

Functions

func NewRootCmd

func NewRootCmd(l zerolog.Logger) *cobra.Command

func NewVersionCmd

func NewVersionCmd() *cobra.Command

func WorkflowListTableOutput

func WorkflowListTableOutput(workflows []*action.WorkflowItem) error

Types

type GracefulError

type GracefulError struct {
	// contains filtered or unexported fields
}

GracefulError represents an error that has been marked as gracefully handled In some parts of our code, we want to raise errors but we don't want the CLI to fail because of the flakiness or active development of the tool

func (GracefulError) Error

func (e GracefulError) Error() string

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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