cli

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(version string) error

Execute builds the root command and runs it. Any error — from a RunE body, a PersistentPreRunE check, flag parsing, or an unknown-subcommand handler — is rendered here as the family's structured JSON on stderr, exactly once, then signalled as a non-zero exit. (cobra's own printing is silenced.)

Types

type GlobalFlags

type GlobalFlags struct {
	Scope        string // team slug or id; "" resolves to the default/personal account
	Auth         string // credential label selecting which stored credential to use
	Format       string // json | yaml | jsonl ("" = per-command default)
	TimeoutMS    int
	Debug        bool
	Full         bool
	BaseURL      string // hidden; overrides https://api.vercel.com for tests
	MaxBodyChars int
}

GlobalFlags carries the persistent flags shared by every command. A credential (--auth, the secret) and a scope (--scope, which team) are separate axes: one credential reaches many teams.

Jump to

Keyboard shortcuts

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