cmd

package
v0.93.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const UserWithNoOrganizationMsg = "you are not part of any organization, please run \"chainloop organization create --name ORG_NAME\" to create one"

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 ErrAttestationTokenRequired = errors.New("chainloop Token required, please provide it via --token flag or CHAINLOOP_TOKEN environment variable")
View Source
var ErrKeylessNotSupported = errors.New("keyless signing not supported, please provide a private key reference with --key instead")
View Source
var ErrOutputFormatNotImplemented = errors.New("format not implemented")
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