Skip to content

Commit

Permalink
initial version of oa:apex:log:delete command
Browse files Browse the repository at this point in the history
  • Loading branch information
osieckiAdam committed Dec 15, 2019
1 parent 65f7c30 commit a13d9e9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,23 @@ $ npm install -g osiecki-sfdx-plugins
$ sfdx COMMAND
running command...
$ sfdx (-v|--version|version)
osiecki-sfdx-plugins/0.0.0 win32-x64 node-v10.16.3
osiecki-sfdx-plugins/0.1.0 win32-x64 node-v10.16.3
$ sfdx --help [COMMAND]
USAGE
$ sfdx COMMAND
...
```
<!-- usagestop -->
<!-- commands -->
* [`sfdx osiecki:apex:log:delete [-c] [-a] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-osieckiapexlogdelete--c--a--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
* [`sfdx oa:apex:log:delete [-c] [-a] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-oaapexlogdelete--c--a--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)

## `sfdx osiecki:apex:log:delete [-c] [-a] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
## `sfdx oa:apex:log:delete [-c] [-a] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`

delete ApexLog entries from Your org

```
USAGE
$ sfdx osiecki:apex:log:delete [-c] [-a] [-u <string>] [--apiversion <string>] [--json] [--loglevel
$ sfdx oa:apex:log:delete [-c] [-a] [-u <string>] [--apiversion <string>] [--json] [--loglevel
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
OPTIONS
Expand All @@ -64,24 +64,24 @@ OPTIONS
EXAMPLES
sfdx osiecki:apex:log:delete
sfdx oa:apex:log:delete
Number of ApexLog records to be deleted: 100
Delete job is started. Id of the job: 7501w000002WA2EAAW
Processed records: 100 / 100
Job is finished, status of the job is: Completed
Total processing time was 2154 ms
All records were deleted sucessfully
sfdx osiecki:apex:log:delete -c -u [email protected]
sfdx oa:apex:log:delete -c -u [email protected]
Number of ApexLog records to be deleted: 10
sfdx osiecki:apex:log:delete --async
sfdx oa:apex:log:delete --async
Number of ApexLog records to be deleted: 7
Delete job is started. Id of the job: 7501w000002WEuKAAW
To poll status of the job, run command 'sfdx force:data:bulk:status -i 7501w000002WEsi'
```

_See code: [lib\commands\osiecki\apex\log\delete.js](https://github.com/osieckiAdam/osiecki-sfdx-plugins/blob/v0.0.0/lib\commands\osiecki\apex\log\delete.js)_
_See code: [lib\commands\oa\apex\log\delete.js](https://github.com/osieckiAdam/osiecki-sfdx-plugins/blob/v0.1.0/lib\commands\oa\apex\log\delete.js)_
<!-- commandsstop -->
<!-- debugging-your-plugin -->
# Debugging your plugin
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "osiecki-sfdx-plugins",
"description": "SFDX plugins by Adam Osiecki",
"version": "0.0.0",
"version": "0.1.0",
"author": "Adam Osiecki @osieckiAdam",
"bugs": "https://github.com/osieckiAdam/osiecki-sfdx-plugins/issues",
"dependencies": {
Expand Down Expand Up @@ -46,8 +46,8 @@
"commands": "./lib/commands",
"bin": "sfdx",
"topics": {
"hello": {
"description": "Commands to say hello."
"apex": {
"description": "work with Apex code"
}
},
"devPlugins": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@ export default class Delete extends SfdxCommand {
};
public static examples = [
`
sfdx osiecki:apex:log:delete
sfdx oa:apex:log:delete
Number of ApexLog records to be deleted: 100
Delete job is started. Id of the job: 7501w000002WA2EAAW
Processed records: 100 / 100
Job is finished, status of the job is: Completed
Total processing time was 2154 ms
All records were deleted sucessfully`,
`
sfdx osiecki:apex:log:delete -c -u [email protected]
sfdx oa:apex:log:delete -c -u [email protected]
Number of ApexLog records to be deleted: 10`,
`
sfdx osiecki:apex:log:delete --async
sfdx oa:apex:log:delete --async
Number of ApexLog records to be deleted: 7
Delete job is started. Id of the job: 7501w000002WEuKAAW
To poll status of the job, run command 'sfdx force:data:bulk:status -i 7501w000002WEsi'`
Expand Down

0 comments on commit a13d9e9

Please sign in to comment.