Skip to content

Commit 81d26c9

Browse files
WillieRuemmelejshackell-sfdcpeternhale
authored
feat: plugin-apex command restructuring
* fix: src passing linting * fix: test/ linting and UTs passing, mainly as validation for next steps * test: when @salesforce/command is required, UTs passing * test: testing without FancyTest * fix: migrate to sf flags, commands * chore: add command aliases * docs: remove mentions of force: topic * docs: move messages to files, audit messages, remove buildDescription method * chore: remove unused consts * docs: remove unused message imports * fix: create new commands for sf naming, restore force:apex:execute to maintain behavior * fix: clean up messages, use standard headers, etc * fix: add example descriptions and use long flag names * fix: tests update with new messages * fix: tests * refactor: move test reporting to TestReporter class * refactor: consolidate reporters * refactor: move commands to finalized designs * chore: review comments I * chore: add deprecated loglevel flags * chore: review comments II * chore: merge wr/sf with upstream branches * chore: remove unused messages gen yarn.lock --------- Co-authored-by: Juliet Shackell <juliet.shackell@salesforce.com> Co-authored-by: Peter Hale <peter.hale@salesforce.com>
1 parent 036b1ce commit 81d26c9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+3737
-4323
lines changed

.eslintrc.js

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,5 @@
55
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
66
*/
77
module.exports = {
8-
extends: ['eslint-config-salesforce-typescript', 'eslint-config-salesforce-license'],
9-
rules: {
10-
'@typescript-eslint/member-ordering': 'warn',
11-
'@typescript-eslint/no-unsafe-assignment': 'warn',
12-
'@typescript-eslint/restrict-template-expressions': 'warn',
13-
'@typescript-eslint/no-misused-promises': 'warn',
14-
'@typescript-eslint/no-unsafe-call': 'warn',
15-
'@typescript-eslint/no-unsafe-member-access': 'warn',
16-
'@typescript-eslint/ban-ts-comment': 'warn',
17-
'@typescript-eslint/prefer-nullish-coalescing': 'warn',
18-
'@typescript-eslint/ban-types': 'warn',
19-
'class-methods-use-this': 'warn',
20-
'no-prototype-builtins': 'warn',
21-
'no-case-declarations': 'warn',
22-
radix: 'warn',
23-
'@typescript-eslint/switch-exhaustiveness-check': 'warn',
24-
'@typescript-eslint/no-unsafe-argument': 'warn',
25-
},
8+
extends: ['eslint-config-salesforce-typescript', 'eslint-config-salesforce-license', 'plugin:sf-plugin/recommended'],
269
};

.idea/.gitignore

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/jsLinters/eslint.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/plugin-apex.iml

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/prettier.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CHANGELOG.md

Lines changed: 46 additions & 71 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ $ NODE_OPTIONS=--inspect-brk bin/dev force:apex:log:list -u myOrg@example.com
4444
<br />
4545
### Running the Test Suite
4646

47-
Run the test suite locally by building the project first and then running the tests.
47+
Test the test suite locally by building the project first and then running the tests.
4848

4949
```
5050
$ yarn build
@@ -136,7 +136,7 @@ EXAMPLES
136136
$ sfdx force:apex:log:get -d Users/Desktop/logs -n 2
137137
```
138138

139-
_See code: [force/apex/log/get.ts](https://github.com/salesforcecli/plugin-apex/blob/main/src/commands/force/apex/log/get.ts)_
139+
_See code: [force/apex/log/log.ts](https://github.com/salesforcecli/plugin-apex/blob/main/src/commands/force/apex/log/get.ts)_
140140
<br /><br />
141141

142142
### `sfdx force:apex:log:list`
@@ -162,7 +162,7 @@ OPTIONS
162162
[default: warn] logging level for this command invocation
163163
164164
DESCRIPTION
165-
Run this command in a project to list the IDs and general information for all debug logs
165+
Test this command in a project to list the IDs and general information for all debug logs
166166
in your default org.
167167
To fetch a specific log from your org, obtain the ID from this command's output, then run
168168
the “sfdx force:apex:log:get” command.
@@ -172,7 +172,7 @@ EXAMPLES
172172
$ sfdx force:apex:log:list -u me@my.org
173173
```
174174

175-
_See code: [force/apex/log/list.ts](https://github.com/salesforcecli/plugin-apex/blob/main/src/commands/force/apex/log/list.ts)_
175+
_See code: [force/apex/log/log.ts](https://github.com/salesforcecli/plugin-apex/blob/main/src/commands/force/apex/log/list.ts)_
176176
<br /><br />
177177

178178
### `sfdx force:apex:log:tail`
@@ -216,7 +216,7 @@ EXAMPLES
216216
$ sfdx force:apex:log:tail -c -s
217217
```
218218

219-
_See code: [force/apex/log/tail.ts](https://github.com/salesforcecli/plugin-apex/blob/main/src/commands/force/apex/log/tail.ts)_
219+
_See code: [force/apex/log/log.ts](https://github.com/salesforcecli/plugin-apex/blob/main/src/commands/force/apex/log/tail.ts)_
220220
<br /><br />
221221

222222
### `sfdx force:apex:execute`
@@ -262,7 +262,7 @@ EXAMPLES
262262
finished.
263263
```
264264

265-
_See code: [force/apex/execute.ts](https://github.com/salesforcecli/plugin-apex/blob/main/src/commands/force/apex/execute.ts)_
265+
_See code: [force/apex/test.ts](https://github.com/salesforcecli/plugin-apex/blob/main/src/commands/force/apex/execute.ts)_
266266
<br /><br />
267267

268268
### `sfdx force:apex:test:run`
@@ -355,7 +355,7 @@ EXAMPLES
355355
$ sfdx force:apex:test:run -l RunLocalTests -d <path to outputdir> -u me@my.org
356356
```
357357

358-
_See code: [force/apex/test/run.ts](https://github.com/salesforcecli/plugin-apex/blob/main/src/commands/force/apex/test/run.ts)_
358+
_See code: [force/apex/test/test.ts](https://github.com/salesforcecli/plugin-apex/blob/main/src/commands/force/apex/test/run.ts)_
359359
<br /><br />
360360

361361
### `sfdx force:apex:test:report`
@@ -375,7 +375,7 @@ OPTIONS
375375
-d, --outputdir=outputdir
376376
directory to store test result files
377377
378-
-i, --testrunid=testrunid
378+
-i, --test-run-id=testrunid
379379
(required) the ID of the test run
380380
381381
-r, --resultformat=(human|tap|junit|json)
@@ -414,6 +414,6 @@ EXAMPLES
414414
$ sfdx force:apex:test:report -i <test run id> -c -d <path to outputdir> -u me@myorg
415415
```
416416

417-
_See code: [force/apex/test/report.ts](https://github.com/salesforcecli/plugin-apex/blob/main/src/commands/force/apex/test/report.ts)_
417+
_See code: [force/apex/test/test.ts](https://github.com/salesforcecli/plugin-apex/blob/main/src/commands/force/apex/test/report.ts)_
418418

419419
<!-- commandsstop -->

0 commit comments

Comments
 (0)