[cli] Explicitly use vc project vs. vc projects (#8113)

This is a follow-up to #8091 which:

- Makes `vc project` the default command, with `vc projects` aliased to `vc project` (previously it was not clear in the code which one was the "real" command)
- Makes some helper names for `ls` more specific

### 📋 Checklist

<!--
  Please keep your PR as a Draft until the checklist is complete
-->

#### Tests

- [ ] The code changed/added as part of this PR has been covered with tests
- [ ] All tests pass locally with `yarn test-unit`

#### Code Review

- [ ] This PR has a concise title and thorough description useful to a reviewer
- [ ] Issue from task tracker has a link to this PR
This commit is contained in:
Matthew Stanciu
2022-07-08 11:56:35 -07:00
committed by GitHub
parent 599f8f675c
commit 5a7461dfe3
6 changed files with 28 additions and 27 deletions

View File

@@ -1,4 +1,4 @@
export function getDataFromIntro(output: string): {
export function pluckIdentifiersFromDeploymentList(output: string): {
project: string | undefined;
org: string | undefined;
} {
@@ -11,7 +11,7 @@ export function getDataFromIntro(output: string): {
};
}
export function parseTable(output: string): string[] {
export function parseSpacedTableRow(output: string): string[] {
return output
.trim()
.replace(/ {1} +/g, ',')