Help us shape the future of Go! Take the 2026 Go Developer Survey

list

package
v1.39.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(runtimeContext *runtime.Context) *cobra.Command

New returns the cobra command.

Types

type Handler

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

Handler loads workflows via the WorkflowDataClient and prints them.

func NewHandler

func NewHandler(ctx *runtime.Context) *Handler

NewHandler builds a Handler with a real WorkflowDataClient.

func NewHandlerWithClient

func NewHandlerWithClient(ctx *runtime.Context, wdc *workflowdataclient.Client) *Handler

NewHandlerWithClient builds a Handler with a pre-built WorkflowDataClient (for testing).

func (*Handler) Execute

func (h *Handler) Execute(ctx context.Context, inputs Inputs) error

Execute lists workflows applying the filters from inputs. Deleted workflows are omitted unless inputs.IncludeDeleted is true. When inputs.OutputFormat is "json", a JSON array is written to stdout; otherwise a human-readable table is printed.

type Inputs added in v1.13.0

type Inputs struct {
	RegistryFilter string
	IncludeDeleted bool
	// OutputFormat controls how results are rendered. "" means human-readable table;
	// "json" prints a JSON array to stdout suitable for piping and scripting.
	OutputFormat string
}

Inputs holds the resolved and validated flag values for the list command.

Jump to

Keyboard shortcuts

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