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

api

package
v1.124.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Placeholders = []string{
	"group/:namespace/:repo",
	"namespace/:repo",
	"fullpath",
	"id",
	"user",
	"username",
	"group",
	"namespace",
	"repo",
	"branch",
}

Placeholders are the tokens `glab api` expands in a request path or field value, without their leading colon. Exported so documentation and the bundled skills can be checked against the real set rather than a copy of it: a token that is neither here nor defined with --placeholder is sent to the API verbatim.

Order matters. The regexp alternation below tries these in sequence, so a longer token must precede any token that prefixes it.

Functions

func EffectiveMethod added in v1.117.0

func EffectiveMethod(cmd *cobra.Command) string

EffectiveMethod reports the HTTP method an invocation of this command uses.

func NewCmdApi

func NewCmdApi(f cmdutils.Factory, runF func(*options) error) *cobra.Command

Types

This section is empty.

Jump to

Keyboard shortcuts

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