api

package
v1.120.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: MIT Imports: 25 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 not here is not a placeholder, and 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