@vltpkg/cli-sdk/config/definition
Type Aliases
Commands
type Commands = typeof commandsDefined in: src/cli-sdk/src/config/definition.ts:97
RecordField
type RecordField = (typeof recordFields)[number]Defined in: src/cli-sdk/src/config/definition.ts:118
Variables
commandAliases
const commandAliases: Map<string, string[]>Defined in: src/cli-sdk/src/config/definition.ts:84
Canonical command names mapped to an array of its aliases
commands
const commands: objectDefined in: src/cli-sdk/src/config/definition.ts:76
Command aliases mapped to their canonical names
Type declaration
?
readonly ?: "help" = 'help';add
readonly add: "install" = 'install';b
readonly b: "build" = 'build';bugs
readonly bugs: "bugs" = 'bugs';build
readonly build: "build" = 'build';cache
readonly cache: "cache" = 'cache';ci
readonly ci: "ci" = 'ci';config
readonly config: "config" = 'config';docs
readonly docs: "docs" = 'docs';exec
readonly exec: "exec" = 'exec';exec-cache
readonly exec-cache: "exec-cache" = 'exec-cache';exec-local
readonly exec-local: "exec-local" = 'exec-local';h
readonly h: "help" = 'help';help
readonly help: "help" = 'help';i
readonly i: "install" = 'install';init
readonly init: "init" = 'init';install
readonly install: "install" = 'install';list
readonly list: "list" = 'list';login
readonly login: "login" = 'login';logout
readonly logout: "logout" = 'logout';ls
readonly ls: "list" = 'list';p
readonly p: "pkg" = 'pkg';pack
readonly pack: "pack" = 'pack';pkg
readonly pkg: "pkg" = 'pkg';pub
readonly pub: "publish" = 'publish';publish
readonly publish: "publish" = 'publish';q
readonly q: "query" = 'query';query
readonly query: "query" = 'query';r
readonly r: "run" = 'run';rm
readonly rm: "uninstall" = 'uninstall';run
readonly run: "run" = 'run';run-exec
readonly run-exec: "run-exec" = 'run-exec';run-script
readonly run-script: "run" = 'run';rx
readonly rx: "run-exec" = 'run-exec';s
readonly s: "serve" = 'serve';serve
readonly serve: "serve" = 'serve';token
readonly token: "token" = 'token';u
readonly u: "update" = 'update';uninstall
readonly uninstall: "uninstall" = 'uninstall';update
readonly update: "update" = 'update';version
readonly version: "version" = 'version';whoami
readonly whoami: "whoami" = 'whoami';x
readonly x: "exec" = 'exec';xc
readonly xc: "exec-cache" = 'exec-cache';xl
readonly xl: "exec-local" = 'exec-local';defaultView
const defaultView: 'json' | 'human'Defined in: src/cli-sdk/src/config/definition.ts:5
definition
const definition: Jack< object & object & object & object & object & object & object & object & object & object & object & object & object & object & object & object & object & object & object & object & object & object & object & object & object & object & object & object & object & object & object & object & object & object & object & object & object & object & object & object & object & object & object & object>Defined in: src/cli-sdk/src/config/definition.ts:161
recordFields
const recordFields: readonly [ 'git-hosts', 'registries', 'git-host-archives', 'scope-registries', 'jsr-registries',]Defined in: src/cli-sdk/src/config/definition.ts:110
Fields that are parsed as a set of key=value pairs
Functions
defaultEditor()
function defaultEditor(): stringDefined in: src/cli-sdk/src/config/definition.ts:14
Returns
string
getCommand()
function getCommand( s?,): | undefined | 'version' | 'build' | 'cache' | 'ci' | 'config' | 'docs' | 'exec' | 'exec-cache' | 'exec-local' | 'help' | 'init' | 'install' | 'list' | 'login' | 'logout' | 'pack' | 'pkg' | 'publish' | 'query' | 'run' | 'run-exec' | 'serve' | 'token' | 'uninstall' | 'update' | 'whoami' | 'bugs'Defined in: src/cli-sdk/src/config/definition.ts:99
Parameters
s?
string
Returns
| undefined | "version" | "build" | "cache" | "ci" |
"config" | "docs" | "exec" | "exec-cache" | "exec-local"
| "help" | "init" | "install" | "list" | "login" |
"logout" | "pack" | "pkg" | "publish" | "query" |
"run" | "run-exec" | "serve" | "token" | "uninstall" |
"update" | "whoami" | "bugs"
getSortedCliOptions()
function getSortedCliOptions(): string[]Defined in: src/cli-sdk/src/config/definition.ts:711
Returns
string[]
getSortedKeys()
function getSortedKeys(): string[]Defined in: src/cli-sdk/src/config/definition.ts:722
Returns
string[]
isRecordField()
function isRecordField( s,): s is | 'registries' | 'git-hosts' | 'git-host-archives' | 'scope-registries' | 'jsr-registries'Defined in: src/cli-sdk/src/config/definition.ts:120
Parameters
s
string
Returns
s is “registries” | “git-hosts” | “git-host-archives” | “scope-registries” | “jsr-registries”