@vltpkg/cli-sdk/config/definition
Type Aliases
Commands
type Commands = typeof commands
Defined in: src/cli-sdk/src/config/definition.ts:68
RecordField
type RecordField = (typeof recordFields)[number]
Defined in: src/cli-sdk/src/config/definition.ts:88
Variables
commandAliases
const commandAliases: Map<string, string[]>
Defined in: src/cli-sdk/src/config/definition.ts:55
Canonical command names mapped to an array of its aliases
commands
const commands: object
Defined in: src/cli-sdk/src/config/definition.ts:47
Command aliases mapped to their canonical names
Type declaration
?
readonly ?: "help" = 'help';
add
readonly add: "install" = 'install';
cache
readonly cache: "cache" = 'cache';
conf
readonly conf: "config" = 'config';
config
readonly config: "config" = 'config';
exec
readonly exec: "exec" = 'exec';
exec-local
readonly exec-local: "exec-local" = 'exec-local';
gui
readonly gui: "gui" = 'gui';
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';
pkg
readonly pkg: "pkg" = 'pkg';
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';
token
readonly token: "token" = 'token';
u
readonly u: "uninstall" = 'uninstall';
uninstall
readonly uninstall: "uninstall" = 'uninstall';
whoami
readonly whoami: "whoami" = 'whoami';
x
readonly x: "exec" = 'exec';
xl
readonly xl: "exec-local" = 'exec-local';
defaultView
const defaultView: 'json' | 'human'
Defined in: src/cli-sdk/src/config/definition.ts:4
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>
Defined in: src/cli-sdk/src/config/definition.ts:131
recordFields
const recordFields: readonly [ 'git-hosts', 'registries', 'git-host-archives', 'scope-registries',]
Defined in: src/cli-sdk/src/config/definition.ts:81
Fields that are parsed as a set of key=value pairs
Functions
getCommand()
function getCommand( s?,): | undefined | 'install' | 'init' | 'config' | 'cache' | 'query' | 'token' | 'exec' | 'exec-local' | 'gui' | 'help' | 'login' | 'logout' | 'list' | 'pkg' | 'run-exec' | 'run' | 'uninstall' | 'whoami'
Defined in: src/cli-sdk/src/config/definition.ts:70
Parameters
s?
string
Returns
| undefined
| "install"
| "init"
| "config"
| "cache"
| "query"
| "token"
| "exec"
| "exec-local"
| "gui"
|
"help"
| "login"
| "logout"
| "list"
| "pkg"
|
"run-exec"
| "run"
| "uninstall"
| "whoami"
isRecordField()
function isRecordField( s,): s is | 'registries' | 'git-hosts' | 'git-host-archives' | 'scope-registries'
Defined in: src/cli-sdk/src/config/definition.ts:90
Parameters
s
string
Returns
s is “registries” | “git-hosts” | “git-host-archives” | “scope-registries”