Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
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.
Click to show internal directories.
Click to hide internal directories.