sfdx-hardis 5.19.4 → 5.20.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/CHANGELOG.md +9 -0
- package/lib/commands/hardis/org/diagnose/audittrail.js +2 -1
- package/lib/commands/hardis/org/diagnose/audittrail.js.map +1 -1
- package/lib/commands/hardis/work/new.d.ts +1 -0
- package/lib/commands/hardis/work/new.js +150 -65
- package/lib/commands/hardis/work/new.js.map +1 -1
- package/oclif.lock +222 -222
- package/oclif.manifest.json +52 -52
- package/package.json +5 -5
package/oclif.manifest.json
CHANGED
|
@@ -57,12 +57,13 @@
|
|
|
57
57
|
"world:hello"
|
|
58
58
|
]
|
|
59
59
|
},
|
|
60
|
-
"hardis:
|
|
60
|
+
"hardis:auth:login": {
|
|
61
61
|
"aliases": [],
|
|
62
62
|
"args": {},
|
|
63
|
-
"description": "
|
|
63
|
+
"description": "Login to salesforce org",
|
|
64
64
|
"examples": [
|
|
65
|
-
"$ sf hardis:
|
|
65
|
+
"$ sf hardis:auth:login",
|
|
66
|
+
"CI=true sf hardis:auth:login"
|
|
66
67
|
],
|
|
67
68
|
"flags": {
|
|
68
69
|
"json": {
|
|
@@ -80,6 +81,28 @@
|
|
|
80
81
|
"multiple": false,
|
|
81
82
|
"type": "option"
|
|
82
83
|
},
|
|
84
|
+
"instanceurl": {
|
|
85
|
+
"char": "r",
|
|
86
|
+
"description": "URL of org instance",
|
|
87
|
+
"name": "instanceurl",
|
|
88
|
+
"hasDynamicHelp": false,
|
|
89
|
+
"multiple": false,
|
|
90
|
+
"type": "option"
|
|
91
|
+
},
|
|
92
|
+
"devhub": {
|
|
93
|
+
"char": "h",
|
|
94
|
+
"description": "Also connect associated DevHub",
|
|
95
|
+
"name": "devhub",
|
|
96
|
+
"allowNo": false,
|
|
97
|
+
"type": "boolean"
|
|
98
|
+
},
|
|
99
|
+
"scratchorg": {
|
|
100
|
+
"char": "s",
|
|
101
|
+
"description": "Scratch org",
|
|
102
|
+
"name": "scratchorg",
|
|
103
|
+
"allowNo": false,
|
|
104
|
+
"type": "boolean"
|
|
105
|
+
},
|
|
83
106
|
"debug": {
|
|
84
107
|
"char": "d",
|
|
85
108
|
"description": "Activate debug mode (more logs)",
|
|
@@ -103,39 +126,38 @@
|
|
|
103
126
|
},
|
|
104
127
|
"hasDynamicHelp": false,
|
|
105
128
|
"hiddenAliases": [],
|
|
106
|
-
"id": "hardis:
|
|
129
|
+
"id": "hardis:auth:login",
|
|
107
130
|
"pluginAlias": "sfdx-hardis",
|
|
108
131
|
"pluginName": "sfdx-hardis",
|
|
109
132
|
"pluginType": "core",
|
|
110
133
|
"strict": true,
|
|
111
134
|
"enableJsonFlag": true,
|
|
112
|
-
"title": "
|
|
135
|
+
"title": "Login",
|
|
113
136
|
"requiresProject": false,
|
|
114
137
|
"isESM": true,
|
|
115
138
|
"relativePath": [
|
|
116
139
|
"lib",
|
|
117
140
|
"commands",
|
|
118
141
|
"hardis",
|
|
119
|
-
"
|
|
120
|
-
"
|
|
142
|
+
"auth",
|
|
143
|
+
"login.js"
|
|
121
144
|
],
|
|
122
145
|
"aliasPermutations": [],
|
|
123
146
|
"permutations": [
|
|
124
|
-
"hardis:
|
|
125
|
-
"
|
|
126
|
-
"
|
|
127
|
-
"hardis:
|
|
128
|
-
"
|
|
129
|
-
"
|
|
147
|
+
"hardis:auth:login",
|
|
148
|
+
"auth:hardis:login",
|
|
149
|
+
"auth:login:hardis",
|
|
150
|
+
"hardis:login:auth",
|
|
151
|
+
"login:hardis:auth",
|
|
152
|
+
"login:auth:hardis"
|
|
130
153
|
]
|
|
131
154
|
},
|
|
132
|
-
"hardis:
|
|
155
|
+
"hardis:cache:clear": {
|
|
133
156
|
"aliases": [],
|
|
134
157
|
"args": {},
|
|
135
|
-
"description": "
|
|
158
|
+
"description": "Clear cache generated by sfdx-hardis",
|
|
136
159
|
"examples": [
|
|
137
|
-
"$ sf hardis:
|
|
138
|
-
"CI=true sf hardis:auth:login"
|
|
160
|
+
"$ sf hardis:cache:clear"
|
|
139
161
|
],
|
|
140
162
|
"flags": {
|
|
141
163
|
"json": {
|
|
@@ -153,28 +175,6 @@
|
|
|
153
175
|
"multiple": false,
|
|
154
176
|
"type": "option"
|
|
155
177
|
},
|
|
156
|
-
"instanceurl": {
|
|
157
|
-
"char": "r",
|
|
158
|
-
"description": "URL of org instance",
|
|
159
|
-
"name": "instanceurl",
|
|
160
|
-
"hasDynamicHelp": false,
|
|
161
|
-
"multiple": false,
|
|
162
|
-
"type": "option"
|
|
163
|
-
},
|
|
164
|
-
"devhub": {
|
|
165
|
-
"char": "h",
|
|
166
|
-
"description": "Also connect associated DevHub",
|
|
167
|
-
"name": "devhub",
|
|
168
|
-
"allowNo": false,
|
|
169
|
-
"type": "boolean"
|
|
170
|
-
},
|
|
171
|
-
"scratchorg": {
|
|
172
|
-
"char": "s",
|
|
173
|
-
"description": "Scratch org",
|
|
174
|
-
"name": "scratchorg",
|
|
175
|
-
"allowNo": false,
|
|
176
|
-
"type": "boolean"
|
|
177
|
-
},
|
|
178
178
|
"debug": {
|
|
179
179
|
"char": "d",
|
|
180
180
|
"description": "Activate debug mode (more logs)",
|
|
@@ -198,30 +198,30 @@
|
|
|
198
198
|
},
|
|
199
199
|
"hasDynamicHelp": false,
|
|
200
200
|
"hiddenAliases": [],
|
|
201
|
-
"id": "hardis:
|
|
201
|
+
"id": "hardis:cache:clear",
|
|
202
202
|
"pluginAlias": "sfdx-hardis",
|
|
203
203
|
"pluginName": "sfdx-hardis",
|
|
204
204
|
"pluginType": "core",
|
|
205
205
|
"strict": true,
|
|
206
206
|
"enableJsonFlag": true,
|
|
207
|
-
"title": "
|
|
207
|
+
"title": "Clear sfdx-hardis cache",
|
|
208
208
|
"requiresProject": false,
|
|
209
209
|
"isESM": true,
|
|
210
210
|
"relativePath": [
|
|
211
211
|
"lib",
|
|
212
212
|
"commands",
|
|
213
213
|
"hardis",
|
|
214
|
-
"
|
|
215
|
-
"
|
|
214
|
+
"cache",
|
|
215
|
+
"clear.js"
|
|
216
216
|
],
|
|
217
217
|
"aliasPermutations": [],
|
|
218
218
|
"permutations": [
|
|
219
|
-
"hardis:
|
|
220
|
-
"
|
|
221
|
-
"
|
|
222
|
-
"hardis:
|
|
223
|
-
"
|
|
224
|
-
"
|
|
219
|
+
"hardis:cache:clear",
|
|
220
|
+
"cache:hardis:clear",
|
|
221
|
+
"cache:clear:hardis",
|
|
222
|
+
"hardis:clear:cache",
|
|
223
|
+
"clear:hardis:cache",
|
|
224
|
+
"clear:cache:hardis"
|
|
225
225
|
]
|
|
226
226
|
},
|
|
227
227
|
"hardis:config:get": {
|
|
@@ -3602,9 +3602,9 @@
|
|
|
3602
3602
|
"hardis:work:new": {
|
|
3603
3603
|
"aliases": [],
|
|
3604
3604
|
"args": {},
|
|
3605
|
-
"description": "Assisted menu to start working on a Salesforce task.\n\nAdvanced instructions in [Create New Task documentation](https://sfdx-hardis.cloudity.com/salesforce-ci-cd-create-new-task/)\n\nAt the end of the command, it will allow you to work on either a scratch org or a sandbox, depending on your choices.\n\nUnder the hood, it can:\n\n- Make **git pull** to be up to date with target branch\n- Create **new git branch** with formatted name (you can override the choices using .sfdx-hardis.yml property **branchPrefixChoices**)\n- Create and initialize a scratch org or a source-tracked sandbox (config can be defined using `config/.sfdx-hardis.yml`):\n- (and for scratch org only for now):\n - **Install packages**\n - Use property `installedPackages`\n - **Push sources**\n - **Assign permission sets**\n - Use property `initPermissionSets`\n - **Run apex initialization scripts**\n - Use property `scratchOrgInitApexScripts`\n - **Load data**\n - Use property `dataPackages`\n",
|
|
3605
|
+
"description": "Assisted menu to start working on a Salesforce task.\n\nAdvanced instructions in [Create New Task documentation](https://sfdx-hardis.cloudity.com/salesforce-ci-cd-create-new-task/)\n\nAt the end of the command, it will allow you to work on either a scratch org or a sandbox, depending on your choices.\n\nUnder the hood, it can:\n\n- Make **git pull** to be up to date with target branch\n- Create **new git branch** with formatted name (you can override the choices using .sfdx-hardis.yml property **branchPrefixChoices**)\n- Create and initialize a scratch org or a source-tracked sandbox (config can be defined using `config/.sfdx-hardis.yml`):\n- (and for scratch org only for now):\n - **Install packages**\n - Use property `installedPackages`\n - **Push sources**\n - **Assign permission sets**\n - Use property `initPermissionSets`\n - **Run apex initialization scripts**\n - Use property `scratchOrgInitApexScripts`\n - **Load data**\n - Use property `dataPackages`\n\n## Override .sfdx-hardis.yml config\n\n### availableTargetBranches\n\nBy default, there is only one target branch (value of property **developmentBranch**).\n\nYou can define multiple target branches (for the future Pull Request) by setting the property **availableTargetBranches** in your .sfdx-hardis.yml file.\n\nThe selected branch will checked out and be used as base to create the user new feature branch.\n\nExamples:\n\n```yaml\navailableTargetBranches:\n - integration\n - preprod\n```\n\n```yaml\navailableTargetBranches:\n - integration,Select this to work from the integration branch (project stream)\n - preprod,Select this to work from the preprod branch (run stream)\n```\n\n### availableProjects\n\nYou can add a first question \"What is the project your task is for\" if you define a property **availableProjects**\n\nThe select will be used as first part of the git branch name. (ex: france/features/dev/JIRA123-webservice-get-account)\n\nExamples:\n\n```yaml\navailableProjects:\n - build\n - run\n - some-big-project\n - france\n - uk\n```\n\n```yaml\navailableProjects:\n - build,Select this to work on the build project\n - run,Select this to work on the run project\n - some-big-project,Select this to work on the some big project\n - france,Select this to work on the France project\n - uk,Select this to work on the UK project\n```\n\n### newTaskNameRegex\n\nIf you want to force a specific format for the task name, you can define a property **newTaskNameRegex** in your .sfdx-hardis.yml file.\n\nPlease also define a property **newTaskNameRegexExample** to give an example to the user.\n\nExample:\n\n```yaml\nnewTaskNameRegex: '^[A-Z]+-[0-9]+ .*'\nnewTaskNameRegexExample: 'MYPROJECT-123 Update account status validation rule'\n```\n\n### sharedDevSandboxes\n\nIf contributors can share dev sandboxes, let's not ask them if they want to overwrite their colleagues' changes when creating a new task :)\n",
|
|
3606
3606
|
"examples": [
|
|
3607
|
-
"$ sf hardis:work:
|
|
3607
|
+
"$ sf hardis:work:new"
|
|
3608
3608
|
],
|
|
3609
3609
|
"flags": {
|
|
3610
3610
|
"json": {
|
|
@@ -14488,5 +14488,5 @@
|
|
|
14488
14488
|
]
|
|
14489
14489
|
}
|
|
14490
14490
|
},
|
|
14491
|
-
"version": "5.
|
|
14491
|
+
"version": "5.20.0"
|
|
14492
14492
|
}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Swiss-army-knife Toolbox for Salesforce.\n Allows you to define a complete CD/CD Pipeline.\n Orchestrate base commands and assist users with interactive wizards",
|
|
4
4
|
"author": "NicolasVuillamy @nvuillam",
|
|
5
5
|
"bugs": "https://github.com/hardisgroupcom/sfdx-hardis/issues",
|
|
6
|
-
"version": "5.
|
|
6
|
+
"version": "5.20.0",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@actions/github": "^6.0.0",
|
|
9
9
|
"@cparra/apexdocs": "^3.9.0",
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
"exceljs": "^4.4.0",
|
|
33
33
|
"extract-zip": "^2.0.1",
|
|
34
34
|
"farmhash": "^4.0.1",
|
|
35
|
-
"fast-xml-parser": "^4.5.
|
|
35
|
+
"fast-xml-parser": "^4.5.3",
|
|
36
36
|
"form-data": "^4.0.1",
|
|
37
37
|
"fs-extra": "^11.3.0",
|
|
38
38
|
"fs-readdir-recursive": "^1.1.0",
|
|
39
39
|
"glob": "^11.0.1",
|
|
40
40
|
"he": "^1.2.0",
|
|
41
41
|
"inquirer": "^10.2.2",
|
|
42
|
-
"isomorphic-dompurify": "^2.
|
|
42
|
+
"isomorphic-dompurify": "^2.22.0",
|
|
43
43
|
"jira-client": "^8.2.2",
|
|
44
44
|
"js-yaml": "^4.1.0",
|
|
45
45
|
"make-fetch-happen": "^14.0.3",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"mega-linter-runner": "^8.4.2",
|
|
49
49
|
"moment": "^2.30.1",
|
|
50
50
|
"open": "^10.1.0",
|
|
51
|
-
"openai": "^4.85.
|
|
51
|
+
"openai": "^4.85.3",
|
|
52
52
|
"ora": "^8.2.0",
|
|
53
53
|
"papaparse": "^5.5.2",
|
|
54
54
|
"pascalcase": "^2.0.0",
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"@types/ws": "^8.5.14",
|
|
94
94
|
"@types/xml2js": "^0.4.14",
|
|
95
95
|
"eslint-plugin-sf-plugin": "^1.20.14",
|
|
96
|
-
"oclif": "^4.17.
|
|
96
|
+
"oclif": "^4.17.30",
|
|
97
97
|
"ts-node": "^10.9.2",
|
|
98
98
|
"typescript": "^5.7.3"
|
|
99
99
|
},
|