sf-debug-log 0.1.2 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +72 -29
- package/lib/commands/debug/delete.d.ts +7 -10
- package/lib/commands/debug/delete.js +48 -48
- package/lib/commands/debug/delete.js.map +1 -1
- package/lib/commands/debug/retrieve.d.ts +8 -10
- package/lib/commands/debug/retrieve.js +56 -65
- package/lib/commands/debug/retrieve.js.map +1 -1
- package/lib/commands/debuglevel/list.d.ts +11 -0
- package/lib/commands/debuglevel/list.js +38 -0
- package/lib/commands/debuglevel/list.js.map +1 -0
- package/lib/commands/debuglevel/new.d.ts +5 -8
- package/lib/commands/debuglevel/new.js +39 -53
- package/lib/commands/debuglevel/new.js.map +1 -1
- package/lib/commands/trace/new.d.ts +8 -11
- package/lib/commands/trace/new.js +58 -84
- package/lib/commands/trace/new.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -2
- package/lib/index.js.map +1 -1
- package/lib/types.d.ts +46 -0
- package/lib/types.js +2 -0
- package/lib/types.js.map +1 -0
- package/lib/utils.d.ts +8 -10
- package/lib/utils.js +36 -40
- package/lib/utils.js.map +1 -1
- package/messages/debug.delete.md +7 -3
- package/messages/debug.retrieve.md +4 -0
- package/messages/debuglevel.list.md +15 -0
- package/messages/debuglevel.new.md +13 -1
- package/messages/trace.new.md +8 -0
- package/package.json +17 -12
- package/oclif.manifest.json +0 -199
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
List the debug levels in your org.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
List the debug levels in your org.
|
|
8
|
+
|
|
9
|
+
# flags.targetusername.summary
|
|
10
|
+
|
|
11
|
+
Username or alias of the target Salesforce org.
|
|
12
|
+
|
|
13
|
+
# examples
|
|
14
|
+
|
|
15
|
+
sf debuglevel list -o MyDeveloperEdition
|
|
@@ -10,10 +10,22 @@ Create a new DebugLevel assigning level for each category.
|
|
|
10
10
|
|
|
11
11
|
Username or alias of the target Salesforce org.
|
|
12
12
|
|
|
13
|
-
# flags.
|
|
13
|
+
# flags.developername.summary
|
|
14
14
|
|
|
15
15
|
The developer name of the new DebugLevel.
|
|
16
16
|
|
|
17
|
+
# flags.api-version.summary
|
|
18
|
+
|
|
19
|
+
API version to use.
|
|
20
|
+
|
|
21
|
+
# flags.force.summary
|
|
22
|
+
|
|
23
|
+
Overwrite existing DebugLevel.
|
|
24
|
+
|
|
25
|
+
# flags.debuglevel.summary
|
|
26
|
+
|
|
27
|
+
The debug level to assign to each category.
|
|
28
|
+
|
|
17
29
|
# examples
|
|
18
30
|
|
|
19
31
|
- <%= config.bin %> <%= command.id %>
|
package/messages/trace.new.md
CHANGED
|
@@ -18,6 +18,14 @@ Username or alias of the target Salesforce org.
|
|
|
18
18
|
|
|
19
19
|
The time for the trace flag.
|
|
20
20
|
|
|
21
|
+
# flags.force.summary
|
|
22
|
+
|
|
23
|
+
Force the creation of the trace flag.
|
|
24
|
+
|
|
25
|
+
# flags.debuglevel.summary
|
|
26
|
+
|
|
27
|
+
The debug level for the trace flag.
|
|
28
|
+
|
|
21
29
|
# error.createTraceFlag
|
|
22
30
|
|
|
23
31
|
Create User Trace Flag failed: %s.
|
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sf-debug-log",
|
|
3
3
|
"description": "Manage Salesforce Debug Logs",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.2.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"exports": "./lib/index.js",
|
|
5
7
|
"dependencies": {
|
|
6
|
-
"@
|
|
7
|
-
"@
|
|
8
|
-
"@salesforce/
|
|
9
|
-
"@salesforce/sf-plugins-core": "^
|
|
10
|
-
"sanitize-filename": "^1.6.3",
|
|
11
|
-
"tslib": "^2"
|
|
8
|
+
"@inquirer/prompts": "^7.8.0",
|
|
9
|
+
"@oclif/core": "^4",
|
|
10
|
+
"@salesforce/core": "^8",
|
|
11
|
+
"@salesforce/sf-plugins-core": "^12"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"@salesforce/cli-plugins-testkit": "^4.3.0",
|
|
15
15
|
"@salesforce/dev-config": "^4.0.1",
|
|
16
|
-
"@salesforce/dev-scripts": "^
|
|
16
|
+
"@salesforce/dev-scripts": "^11.0.2",
|
|
17
17
|
"@salesforce/prettier-config": "^0.0.3",
|
|
18
18
|
"@salesforce/ts-sinon": "^1.4.14",
|
|
19
19
|
"@swc/core": "^1.3.19",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"eslint-plugin-jsdoc": "^46.4.6",
|
|
30
30
|
"eslint-plugin-sf-plugin": "^1.16.2",
|
|
31
31
|
"husky": "^8.0.0",
|
|
32
|
-
"mocha": "^
|
|
32
|
+
"mocha": "^11.7.1",
|
|
33
33
|
"nyc": "^15.1.0",
|
|
34
|
-
"oclif": "^
|
|
34
|
+
"oclif": "^4.22.5",
|
|
35
35
|
"prettier": "^2.8.8",
|
|
36
36
|
"pretty-quick": "^3.1.3",
|
|
37
37
|
"shx": "0.3.4",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"format": "wireit",
|
|
89
89
|
"lint": "wireit",
|
|
90
90
|
"postpack": "shx rm -f oclif.manifest.json",
|
|
91
|
-
"prepack": "
|
|
91
|
+
"prepack": "wireit",
|
|
92
92
|
"test": "wireit",
|
|
93
93
|
"test:only": "wireit",
|
|
94
94
|
"version": "oclif readme"
|
|
@@ -97,6 +97,11 @@
|
|
|
97
97
|
"access": "public"
|
|
98
98
|
},
|
|
99
99
|
"wireit": {
|
|
100
|
+
"prepack": {
|
|
101
|
+
"dependencies": [
|
|
102
|
+
"build"
|
|
103
|
+
]
|
|
104
|
+
},
|
|
100
105
|
"build": {
|
|
101
106
|
"dependencies": [
|
|
102
107
|
"compile",
|
|
@@ -199,4 +204,4 @@
|
|
|
199
204
|
}
|
|
200
205
|
},
|
|
201
206
|
"author": "Raffaele Preziosi"
|
|
202
|
-
}
|
|
207
|
+
}
|
package/oclif.manifest.json
DELETED
|
@@ -1,199 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": "0.1.2",
|
|
3
|
-
"commands": {
|
|
4
|
-
"debug:delete": {
|
|
5
|
-
"id": "debug:delete",
|
|
6
|
-
"summary": "Delete Apex log files from a Salesforce org.",
|
|
7
|
-
"description": "Deletes Apex log files from a Salesforce org.",
|
|
8
|
-
"strict": true,
|
|
9
|
-
"pluginName": "sf-debug-log",
|
|
10
|
-
"pluginAlias": "sf-debug-log",
|
|
11
|
-
"pluginType": "core",
|
|
12
|
-
"aliases": [],
|
|
13
|
-
"examples": [
|
|
14
|
-
"sf debug delete -u \"Raffaele Preziosi\" -t 60"
|
|
15
|
-
],
|
|
16
|
-
"flags": {
|
|
17
|
-
"json": {
|
|
18
|
-
"name": "json",
|
|
19
|
-
"type": "boolean",
|
|
20
|
-
"description": "Format output as json.",
|
|
21
|
-
"helpGroup": "GLOBAL",
|
|
22
|
-
"allowNo": false
|
|
23
|
-
},
|
|
24
|
-
"targetusername": {
|
|
25
|
-
"name": "targetusername",
|
|
26
|
-
"type": "option",
|
|
27
|
-
"char": "o",
|
|
28
|
-
"summary": "Username or alias of the target Salesforce org.",
|
|
29
|
-
"required": true,
|
|
30
|
-
"multiple": false
|
|
31
|
-
},
|
|
32
|
-
"user": {
|
|
33
|
-
"name": "user",
|
|
34
|
-
"type": "option",
|
|
35
|
-
"char": "u",
|
|
36
|
-
"summary": "[default: targetusername] Username, Name, or ID of the user for whom you want to delete the logs.",
|
|
37
|
-
"multiple": false
|
|
38
|
-
},
|
|
39
|
-
"time": {
|
|
40
|
-
"name": "time",
|
|
41
|
-
"type": "option",
|
|
42
|
-
"char": "t",
|
|
43
|
-
"summary": "The number of minutes to retrieve log files for.",
|
|
44
|
-
"multiple": false
|
|
45
|
-
},
|
|
46
|
-
"all": {
|
|
47
|
-
"name": "all",
|
|
48
|
-
"type": "boolean",
|
|
49
|
-
"char": "a",
|
|
50
|
-
"summary": "Delete log files for all users.",
|
|
51
|
-
"allowNo": false
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
"args": {},
|
|
55
|
-
"hasDynamicHelp": true
|
|
56
|
-
},
|
|
57
|
-
"debug:retrieve": {
|
|
58
|
-
"id": "debug:retrieve",
|
|
59
|
-
"summary": "Retrieve Apex log files from the Salesforce platform.",
|
|
60
|
-
"description": "This command allows you to retrieve Apex log files from a Salesforce org.",
|
|
61
|
-
"strict": true,
|
|
62
|
-
"pluginName": "sf-debug-log",
|
|
63
|
-
"pluginAlias": "sf-debug-log",
|
|
64
|
-
"pluginType": "core",
|
|
65
|
-
"aliases": [],
|
|
66
|
-
"examples": [
|
|
67
|
-
"sf debug retrieve -o MyDeveloperEdition -u \"Raffaele Preziosi\" -t 10"
|
|
68
|
-
],
|
|
69
|
-
"flags": {
|
|
70
|
-
"json": {
|
|
71
|
-
"name": "json",
|
|
72
|
-
"type": "boolean",
|
|
73
|
-
"description": "Format output as json.",
|
|
74
|
-
"helpGroup": "GLOBAL",
|
|
75
|
-
"allowNo": false
|
|
76
|
-
},
|
|
77
|
-
"targetusername": {
|
|
78
|
-
"name": "targetusername",
|
|
79
|
-
"type": "option",
|
|
80
|
-
"char": "o",
|
|
81
|
-
"summary": "Username or alias of the target Salesforce org.",
|
|
82
|
-
"required": true,
|
|
83
|
-
"multiple": false
|
|
84
|
-
},
|
|
85
|
-
"user": {
|
|
86
|
-
"name": "user",
|
|
87
|
-
"type": "option",
|
|
88
|
-
"char": "u",
|
|
89
|
-
"summary": "[default: targetusername] Username, Name, or ID of the user for whom you want to retrieve the logs.",
|
|
90
|
-
"multiple": false
|
|
91
|
-
},
|
|
92
|
-
"time": {
|
|
93
|
-
"name": "time",
|
|
94
|
-
"type": "option",
|
|
95
|
-
"char": "t",
|
|
96
|
-
"summary": "The number of minutes to retrieve log files for.",
|
|
97
|
-
"multiple": false,
|
|
98
|
-
"default": 60
|
|
99
|
-
},
|
|
100
|
-
"folder": {
|
|
101
|
-
"name": "folder",
|
|
102
|
-
"type": "option",
|
|
103
|
-
"char": "d",
|
|
104
|
-
"summary": "The folder where the retrieved log files will be stored.",
|
|
105
|
-
"multiple": false,
|
|
106
|
-
"default": ".sfdx/tools/debug/logs"
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
"args": {},
|
|
110
|
-
"hasDynamicHelp": true
|
|
111
|
-
},
|
|
112
|
-
"debuglevel:new": {
|
|
113
|
-
"id": "debuglevel:new",
|
|
114
|
-
"summary": "Create a new DebugLevel.",
|
|
115
|
-
"description": "Create a new DebugLevel assigning level for each category.",
|
|
116
|
-
"strict": true,
|
|
117
|
-
"pluginName": "sf-debug-log",
|
|
118
|
-
"pluginAlias": "sf-debug-log",
|
|
119
|
-
"pluginType": "core",
|
|
120
|
-
"aliases": [],
|
|
121
|
-
"examples": [
|
|
122
|
-
"<%= config.bin %> <%= command.id %>"
|
|
123
|
-
],
|
|
124
|
-
"flags": {
|
|
125
|
-
"json": {
|
|
126
|
-
"name": "json",
|
|
127
|
-
"type": "boolean",
|
|
128
|
-
"description": "Format output as json.",
|
|
129
|
-
"helpGroup": "GLOBAL",
|
|
130
|
-
"allowNo": false
|
|
131
|
-
},
|
|
132
|
-
"targetusername": {
|
|
133
|
-
"name": "targetusername",
|
|
134
|
-
"type": "option",
|
|
135
|
-
"char": "o",
|
|
136
|
-
"summary": "Username or alias of the target Salesforce org.",
|
|
137
|
-
"required": true,
|
|
138
|
-
"multiple": false
|
|
139
|
-
},
|
|
140
|
-
"developername": {
|
|
141
|
-
"name": "developername",
|
|
142
|
-
"type": "option",
|
|
143
|
-
"char": "n",
|
|
144
|
-
"summary": "The developer name of the new DebugLevel.",
|
|
145
|
-
"required": true,
|
|
146
|
-
"multiple": false
|
|
147
|
-
}
|
|
148
|
-
},
|
|
149
|
-
"args": {},
|
|
150
|
-
"hasDynamicHelp": true
|
|
151
|
-
},
|
|
152
|
-
"trace:new": {
|
|
153
|
-
"id": "trace:new",
|
|
154
|
-
"summary": "Create a trace flag for a user.",
|
|
155
|
-
"strict": true,
|
|
156
|
-
"pluginName": "sf-debug-log",
|
|
157
|
-
"pluginAlias": "sf-debug-log",
|
|
158
|
-
"pluginType": "core",
|
|
159
|
-
"aliases": [],
|
|
160
|
-
"examples": [
|
|
161
|
-
"sf trace new -o MyDeveloperEdition -u \"Raffaele Preziosi\" -t 10"
|
|
162
|
-
],
|
|
163
|
-
"flags": {
|
|
164
|
-
"json": {
|
|
165
|
-
"name": "json",
|
|
166
|
-
"type": "boolean",
|
|
167
|
-
"description": "Format output as json.",
|
|
168
|
-
"helpGroup": "GLOBAL",
|
|
169
|
-
"allowNo": false
|
|
170
|
-
},
|
|
171
|
-
"targetusername": {
|
|
172
|
-
"name": "targetusername",
|
|
173
|
-
"type": "option",
|
|
174
|
-
"char": "o",
|
|
175
|
-
"summary": "Username or alias of the target Salesforce org.",
|
|
176
|
-
"required": true,
|
|
177
|
-
"multiple": false
|
|
178
|
-
},
|
|
179
|
-
"user": {
|
|
180
|
-
"name": "user",
|
|
181
|
-
"type": "option",
|
|
182
|
-
"char": "u",
|
|
183
|
-
"summary": "[default: targetusername] Username, Name, or ID of the user for whom you want to retrieve the logs.",
|
|
184
|
-
"multiple": false
|
|
185
|
-
},
|
|
186
|
-
"time": {
|
|
187
|
-
"name": "time",
|
|
188
|
-
"type": "option",
|
|
189
|
-
"char": "t",
|
|
190
|
-
"summary": "The time for the trace flag.",
|
|
191
|
-
"multiple": false,
|
|
192
|
-
"default": 60
|
|
193
|
-
}
|
|
194
|
-
},
|
|
195
|
-
"args": {},
|
|
196
|
-
"hasDynamicHelp": true
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
}
|