MCPcopy Create free account
hub / github.com/vercel/vercel / getCommandName

Function getCommandName

packages/cli/src/util/pkg-name.ts:28–34  ·  view source on GitHub ↗
(subcommands?: string)

Source from the content-addressed store, hash-verified

26 * as a suffix such as `vercel env pull` or `now env pull`.
27 */
28export function getCommandName(subcommands?: string): string {
29 let vercel = packageName;
30 if (subcommands) {
31 vercel = `${vercel} ${subcommands}`;
32 }
33 return cmd(vercel);
34}
35
36/**
37 * Plain (unstyled) command string for JSON output, e.g. "vercel open".

Callers 15

mainFunction · 0.90
purgeFunction · 0.90
dangerouslyDeleteFunction · 0.90
invalidateFunction · 0.90
getInspectCommandFunction · 0.90
resolveLogsTargetFunction · 0.90
requestRollbackFunction · 0.90
updateCmdFunction · 0.90
itemsCmdFunction · 0.90
removeCmdFunction · 0.90
tokensCmdFunction · 0.90
backupsCmdFunction · 0.90

Calls 1

cmdFunction · 0.85

Tested by

no test coverage detected