(subcommands?: string)
| 26 | * as a suffix such as `vercel env pull` or `now env pull`. |
| 27 | */ |
| 28 | export 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". |
no test coverage detected