subcommands

package
v0.59.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const CopyCommand = "cp"

CopyCommand is the name of the copy command.

View Source
const DecodeScriptCommand = "decode-script"

DecodeScriptCommand is the command name for decoding scripts.

View Source
const InitCommand = "init"

InitCommand is the name of main initialization command

View Source
const StepInitCommand = "step-init"

StepInitCommand is the name of the /tekton/steps initialization command.

Variables

This section is empty.

Functions

func Process

func Process(args []string) error

Process takes the set of arguments passed to entrypoint and executes any subcommand that the args call for. An error is returned to the caller to indicate that a subcommand was matched and to pass back its success/fail state. The returned error will be nil if no subcommand was matched to the passed args, OK if args matched and the subcommand succeeded, or any other error if the args matched but the subcommand failed.

Types

type OK added in v0.46.0

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

OK is returned for successful subcommand executions.

func (OK) Error added in v0.46.0

func (err OK) Error() string

type SubcommandError

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

SubcommandError is returned for failed subcommand executions.

func (SubcommandError) Error

func (err SubcommandError) Error() string

type SubcommandSuccessful deprecated

type SubcommandSuccessful = OK

SubcommandSuccessful is an alias for the OK type.

Deprecated: replace usage with OK type.

Jump to

Keyboard shortcuts

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