Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ $ sfdx force:apex:log:list -u myOrg@example.com
Alternatively, you can also run the command from the `plugin-apex` package directory without linking the plugin:

```
$ NODE_OPTIONS=--inspect-brk bin/run force:apex:log:list -u myOrg@example.com
$ NODE_OPTIONS=--inspect-brk bin/dev force:apex:log:list -u myOrg@example.com
```
<br />
### Running the Test Suite
Expand All @@ -59,10 +59,10 @@ We recommend using the Visual Studio Code (VS Code) IDE for your plugin developm
$ sfdx force:apex:log:list -u myOrg@example.com --dev-suspend
```

Alternatively, replace `sfdx` with `NODE_OPTIONS=--inspect-brk bin/run` and run your command:
Alternatively, replace `sfdx` with `NODE_OPTIONS=--inspect-brk bin/dev` and run your command:

```
$ NODE_OPTIONS=--inspect-brk bin/run force:apex:log:list -u myOrg@example.com
$ NODE_OPTIONS=--inspect-brk bin/dev force:apex:log:list -u myOrg@example.com
```

2. Set some breakpoints in your code.
Expand Down
4 changes: 3 additions & 1 deletion bin/run
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env node

require('@oclif/command').run().catch(require('@oclif/errors/handle'));
require('@oclif/core').run()
.then(require('@oclif/core/flush'))
.catch(require('@oclif/core/handle'))
54 changes: 14 additions & 40 deletions command-snapshot.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,4 @@
[
{
"command": "commandreference:generate",
"plugin": "@salesforce/plugin-command-reference",
"flags": [
"erroronwarnings",
"hidden",
"json",
"loglevel",
"outputdir",
"plugins"
]
},
{
"command": "force:apex:execute",
"plugin": "@salesforce/plugin-apex",
Expand All @@ -20,7 +8,8 @@
"json",
"loglevel",
"targetusername"
]
],
"alias": []
},
{
"command": "force:apex:log:get",
Expand All @@ -33,7 +22,8 @@
"number",
"outputdir",
"targetusername"
]
],
"alias": []
},
{
"command": "force:apex:log:list",
Expand All @@ -43,7 +33,8 @@
"json",
"loglevel",
"targetusername"
]
],
"alias": []
},
{
"command": "force:apex:log:tail",
Expand All @@ -54,8 +45,10 @@
"debuglevel",
"json",
"loglevel",
"skiptraceflag"
]
"skiptraceflag",
"targetusername"
],
"alias": []
},
{
"command": "force:apex:test:report",
Expand All @@ -71,7 +64,8 @@
"testrunid",
"verbose",
"wait"
]
],
"alias": []
},
{
"command": "force:apex:test:run",
Expand All @@ -92,27 +86,7 @@
"tests",
"verbose",
"wait"
]
},
{
"command": "help",
"plugin": "@oclif/plugin-help",
"flags": [
"all"
]
},
{
"command": "snapshot:compare",
"plugin": "@oclif/plugin-command-snapshot",
"flags": [
"filepath"
]
},
{
"command": "snapshot:generate",
"plugin": "@oclif/plugin-command-snapshot",
"flags": [
"filepath"
]
],
"alias": []
}
]
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"tslib": "^1"
},
"devDependencies": {
"@oclif/plugin-command-snapshot": "^3",
"@oclif/plugin-command-snapshot": "^3.2.11",
"@oclif/plugin-help": "^5",
"@oclif/test": "^2.2.2",
"@salesforce/dev-config": "3.0.1",
Expand All @@ -30,7 +30,7 @@
"globby": "^8",
"mocha": "^5",
"nyc": "^14.1.1",
"oclif": "^2.6.3",
"oclif": "^3.2.28",
"shx": "^0.3.4",
"sinon": "^7.3.1",
"ts-node": "^8.7.0",
Expand Down Expand Up @@ -101,8 +101,8 @@
"postpack": "shx rm -f oclif.manifest.json",
"test": "cross-env FORCE_COLOR=true mocha --recursive \"./test/**/*.test.ts\" --full-trace",
"version": "oclif readme && git add README.md",
"test:deprecation-policy": "./bin/run snapshot:compare",
"test:command-reference": "./bin/run commandreference:generate -p apex --erroronwarnings",
"test:deprecation-policy": "./bin/dev snapshot:compare",
"test:command-reference": "./bin/dev commandreference:generate -p apex --erroronwarnings",
"package": "npm pack"
},
"husky": {
Expand Down
Loading