cli

package
v0.27.4 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package cli provides the ability for inserting Vela cli resources into or extracting Vela cli resources from the middleware chain for the API.

Usage:

import "github.com/go-vela/server/router/middleware/cli"

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromContext

func FromContext(c context.Context) *cli.Command

FromContext returns the cli command associated with this context.

func ToContext

func ToContext(c Setter, s *cli.Command)

ToContext adds the cli command to this context if it supports the Setter interface.

Types

type Setter

type Setter interface {
	Set(any, any)
}

Setter defines a context that enables setting values.

Jump to

Keyboard shortcuts

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