sfdx-hardis 6.7.2-beta202510122234.0 → 6.7.2-beta202510122255.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/lib/common/utils/index.js +11 -11
- package/lib/common/utils/index.js.map +1 -1
- package/oclif.manifest.json +496 -496
- package/package.json +1 -1
package/oclif.manifest.json
CHANGED
|
@@ -4421,135 +4421,6 @@
|
|
|
4421
4421
|
"ws:work:hardis"
|
|
4422
4422
|
]
|
|
4423
4423
|
},
|
|
4424
|
-
"hardis:git:pull-requests:extract": {
|
|
4425
|
-
"aliases": [],
|
|
4426
|
-
"args": {},
|
|
4427
|
-
"description": "\n## Command Behavior\n\n**Extracts pull request information from your Git server based on specified filtering criteria.**\n\nThis command provides a powerful way to query and retrieve details about pull requests (or merge requests, depending on your Git provider) in your repository. It's highly useful for reporting, auditing, and analyzing development workflows.\n\nKey functionalities include:\n\n- **Target Branch Filtering:** You can filter pull requests by their target branch using the `--target-branch` flag. If not specified, the command will prompt you to select one.\n- **Status Filtering:** Filter pull requests by their status: `open`, `merged`, or `abandoned` using the `--status` flag. An interactive prompt is provided if no status is specified.\n- **Minimum Date Filtering:** Use the `--min-date` flag to retrieve pull requests created or updated after a specific date.\n- **CSV Output:** The extracted pull request data is generated into a CSV file, which can be used for further analysis in spreadsheet software.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves interacting with a Git provider's API:\n\n- **Git Provider Abstraction:** It uses the `GitProvider.getInstance(true)` to abstract away the specifics of different Git platforms (e.g., GitHub, GitLab, Azure DevOps). This ensures the command can work across various environments.\n- **API Calls:** The `gitProvider.listPullRequests()` method is called with a `prConstraint` object that encapsulates the filtering criteria (target branch, minimum date, status).\n- **Interactive Prompts:** The `prompts` library is used to interactively gather input from the user for the target branch and pull request status if they are not provided as command-line flags.\n- **Date Handling:** The `moment` library is used to parse and handle date inputs for the `--min-date` flag.\n- **CSV Generation:** The `generateCsvFile` utility is responsible for converting the retrieved pull request data into a CSV format, and `generateReportPath` determines the output file location.\n- **Error Handling:** It includes error handling for cases where a Git provider cannot be identified.\n</details>\n",
|
|
4428
|
-
"examples": [
|
|
4429
|
-
"$ sf hardis:git:pull-requests:extract",
|
|
4430
|
-
"$ sf hardis:git:pull-requests:extract --target-branch main --status merged"
|
|
4431
|
-
],
|
|
4432
|
-
"flags": {
|
|
4433
|
-
"json": {
|
|
4434
|
-
"description": "Format output as json.",
|
|
4435
|
-
"helpGroup": "GLOBAL",
|
|
4436
|
-
"name": "json",
|
|
4437
|
-
"allowNo": false,
|
|
4438
|
-
"type": "boolean"
|
|
4439
|
-
},
|
|
4440
|
-
"flags-dir": {
|
|
4441
|
-
"helpGroup": "GLOBAL",
|
|
4442
|
-
"name": "flags-dir",
|
|
4443
|
-
"summary": "Import flag values from a directory.",
|
|
4444
|
-
"hasDynamicHelp": false,
|
|
4445
|
-
"multiple": false,
|
|
4446
|
-
"type": "option"
|
|
4447
|
-
},
|
|
4448
|
-
"target-branch": {
|
|
4449
|
-
"char": "t",
|
|
4450
|
-
"description": "Target branch of PRs",
|
|
4451
|
-
"name": "target-branch",
|
|
4452
|
-
"hasDynamicHelp": false,
|
|
4453
|
-
"multiple": false,
|
|
4454
|
-
"type": "option"
|
|
4455
|
-
},
|
|
4456
|
-
"status": {
|
|
4457
|
-
"char": "x",
|
|
4458
|
-
"description": "Status of the PR",
|
|
4459
|
-
"name": "status",
|
|
4460
|
-
"hasDynamicHelp": false,
|
|
4461
|
-
"multiple": false,
|
|
4462
|
-
"options": [
|
|
4463
|
-
"open",
|
|
4464
|
-
"merged",
|
|
4465
|
-
"abandoned"
|
|
4466
|
-
],
|
|
4467
|
-
"type": "option"
|
|
4468
|
-
},
|
|
4469
|
-
"min-date": {
|
|
4470
|
-
"char": "m",
|
|
4471
|
-
"description": "Minimum date for PR",
|
|
4472
|
-
"name": "min-date",
|
|
4473
|
-
"hasDynamicHelp": false,
|
|
4474
|
-
"multiple": false,
|
|
4475
|
-
"type": "option"
|
|
4476
|
-
},
|
|
4477
|
-
"outputfile": {
|
|
4478
|
-
"char": "f",
|
|
4479
|
-
"description": "Force the path and name of output report file. Must end with .csv",
|
|
4480
|
-
"name": "outputfile",
|
|
4481
|
-
"hasDynamicHelp": false,
|
|
4482
|
-
"multiple": false,
|
|
4483
|
-
"type": "option"
|
|
4484
|
-
},
|
|
4485
|
-
"debug": {
|
|
4486
|
-
"char": "d",
|
|
4487
|
-
"description": "Activate debug mode (more logs)",
|
|
4488
|
-
"name": "debug",
|
|
4489
|
-
"allowNo": false,
|
|
4490
|
-
"type": "boolean"
|
|
4491
|
-
},
|
|
4492
|
-
"websocket": {
|
|
4493
|
-
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
4494
|
-
"name": "websocket",
|
|
4495
|
-
"hasDynamicHelp": false,
|
|
4496
|
-
"multiple": false,
|
|
4497
|
-
"type": "option"
|
|
4498
|
-
},
|
|
4499
|
-
"skipauth": {
|
|
4500
|
-
"description": "Skip authentication check when a default username is required",
|
|
4501
|
-
"name": "skipauth",
|
|
4502
|
-
"allowNo": false,
|
|
4503
|
-
"type": "boolean"
|
|
4504
|
-
}
|
|
4505
|
-
},
|
|
4506
|
-
"hasDynamicHelp": false,
|
|
4507
|
-
"hiddenAliases": [],
|
|
4508
|
-
"id": "hardis:git:pull-requests:extract",
|
|
4509
|
-
"pluginAlias": "sfdx-hardis",
|
|
4510
|
-
"pluginName": "sfdx-hardis",
|
|
4511
|
-
"pluginType": "core",
|
|
4512
|
-
"strict": true,
|
|
4513
|
-
"enableJsonFlag": true,
|
|
4514
|
-
"title": "Extract pull requests",
|
|
4515
|
-
"requiresProject": true,
|
|
4516
|
-
"isESM": true,
|
|
4517
|
-
"relativePath": [
|
|
4518
|
-
"lib",
|
|
4519
|
-
"commands",
|
|
4520
|
-
"hardis",
|
|
4521
|
-
"git",
|
|
4522
|
-
"pull-requests",
|
|
4523
|
-
"extract.js"
|
|
4524
|
-
],
|
|
4525
|
-
"aliasPermutations": [],
|
|
4526
|
-
"permutations": [
|
|
4527
|
-
"hardis:git:pull-requests:extract",
|
|
4528
|
-
"git:hardis:pull-requests:extract",
|
|
4529
|
-
"git:pull-requests:hardis:extract",
|
|
4530
|
-
"git:pull-requests:extract:hardis",
|
|
4531
|
-
"hardis:pull-requests:git:extract",
|
|
4532
|
-
"pull-requests:hardis:git:extract",
|
|
4533
|
-
"pull-requests:git:hardis:extract",
|
|
4534
|
-
"pull-requests:git:extract:hardis",
|
|
4535
|
-
"hardis:pull-requests:extract:git",
|
|
4536
|
-
"pull-requests:hardis:extract:git",
|
|
4537
|
-
"pull-requests:extract:hardis:git",
|
|
4538
|
-
"pull-requests:extract:git:hardis",
|
|
4539
|
-
"hardis:git:extract:pull-requests",
|
|
4540
|
-
"git:hardis:extract:pull-requests",
|
|
4541
|
-
"git:extract:hardis:pull-requests",
|
|
4542
|
-
"git:extract:pull-requests:hardis",
|
|
4543
|
-
"hardis:extract:git:pull-requests",
|
|
4544
|
-
"extract:hardis:git:pull-requests",
|
|
4545
|
-
"extract:git:hardis:pull-requests",
|
|
4546
|
-
"extract:git:pull-requests:hardis",
|
|
4547
|
-
"hardis:extract:pull-requests:git",
|
|
4548
|
-
"extract:hardis:pull-requests:git",
|
|
4549
|
-
"extract:pull-requests:hardis:git",
|
|
4550
|
-
"extract:pull-requests:git:hardis"
|
|
4551
|
-
]
|
|
4552
|
-
},
|
|
4553
4424
|
"hardis:doc:extract:permsetgroups": {
|
|
4554
4425
|
"aliases": [],
|
|
4555
4426
|
"args": {},
|
|
@@ -4740,6 +4611,135 @@
|
|
|
4740
4611
|
"generate:plugin:doc:hardis"
|
|
4741
4612
|
]
|
|
4742
4613
|
},
|
|
4614
|
+
"hardis:git:pull-requests:extract": {
|
|
4615
|
+
"aliases": [],
|
|
4616
|
+
"args": {},
|
|
4617
|
+
"description": "\n## Command Behavior\n\n**Extracts pull request information from your Git server based on specified filtering criteria.**\n\nThis command provides a powerful way to query and retrieve details about pull requests (or merge requests, depending on your Git provider) in your repository. It's highly useful for reporting, auditing, and analyzing development workflows.\n\nKey functionalities include:\n\n- **Target Branch Filtering:** You can filter pull requests by their target branch using the `--target-branch` flag. If not specified, the command will prompt you to select one.\n- **Status Filtering:** Filter pull requests by their status: `open`, `merged`, or `abandoned` using the `--status` flag. An interactive prompt is provided if no status is specified.\n- **Minimum Date Filtering:** Use the `--min-date` flag to retrieve pull requests created or updated after a specific date.\n- **CSV Output:** The extracted pull request data is generated into a CSV file, which can be used for further analysis in spreadsheet software.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves interacting with a Git provider's API:\n\n- **Git Provider Abstraction:** It uses the `GitProvider.getInstance(true)` to abstract away the specifics of different Git platforms (e.g., GitHub, GitLab, Azure DevOps). This ensures the command can work across various environments.\n- **API Calls:** The `gitProvider.listPullRequests()` method is called with a `prConstraint` object that encapsulates the filtering criteria (target branch, minimum date, status).\n- **Interactive Prompts:** The `prompts` library is used to interactively gather input from the user for the target branch and pull request status if they are not provided as command-line flags.\n- **Date Handling:** The `moment` library is used to parse and handle date inputs for the `--min-date` flag.\n- **CSV Generation:** The `generateCsvFile` utility is responsible for converting the retrieved pull request data into a CSV format, and `generateReportPath` determines the output file location.\n- **Error Handling:** It includes error handling for cases where a Git provider cannot be identified.\n</details>\n",
|
|
4618
|
+
"examples": [
|
|
4619
|
+
"$ sf hardis:git:pull-requests:extract",
|
|
4620
|
+
"$ sf hardis:git:pull-requests:extract --target-branch main --status merged"
|
|
4621
|
+
],
|
|
4622
|
+
"flags": {
|
|
4623
|
+
"json": {
|
|
4624
|
+
"description": "Format output as json.",
|
|
4625
|
+
"helpGroup": "GLOBAL",
|
|
4626
|
+
"name": "json",
|
|
4627
|
+
"allowNo": false,
|
|
4628
|
+
"type": "boolean"
|
|
4629
|
+
},
|
|
4630
|
+
"flags-dir": {
|
|
4631
|
+
"helpGroup": "GLOBAL",
|
|
4632
|
+
"name": "flags-dir",
|
|
4633
|
+
"summary": "Import flag values from a directory.",
|
|
4634
|
+
"hasDynamicHelp": false,
|
|
4635
|
+
"multiple": false,
|
|
4636
|
+
"type": "option"
|
|
4637
|
+
},
|
|
4638
|
+
"target-branch": {
|
|
4639
|
+
"char": "t",
|
|
4640
|
+
"description": "Target branch of PRs",
|
|
4641
|
+
"name": "target-branch",
|
|
4642
|
+
"hasDynamicHelp": false,
|
|
4643
|
+
"multiple": false,
|
|
4644
|
+
"type": "option"
|
|
4645
|
+
},
|
|
4646
|
+
"status": {
|
|
4647
|
+
"char": "x",
|
|
4648
|
+
"description": "Status of the PR",
|
|
4649
|
+
"name": "status",
|
|
4650
|
+
"hasDynamicHelp": false,
|
|
4651
|
+
"multiple": false,
|
|
4652
|
+
"options": [
|
|
4653
|
+
"open",
|
|
4654
|
+
"merged",
|
|
4655
|
+
"abandoned"
|
|
4656
|
+
],
|
|
4657
|
+
"type": "option"
|
|
4658
|
+
},
|
|
4659
|
+
"min-date": {
|
|
4660
|
+
"char": "m",
|
|
4661
|
+
"description": "Minimum date for PR",
|
|
4662
|
+
"name": "min-date",
|
|
4663
|
+
"hasDynamicHelp": false,
|
|
4664
|
+
"multiple": false,
|
|
4665
|
+
"type": "option"
|
|
4666
|
+
},
|
|
4667
|
+
"outputfile": {
|
|
4668
|
+
"char": "f",
|
|
4669
|
+
"description": "Force the path and name of output report file. Must end with .csv",
|
|
4670
|
+
"name": "outputfile",
|
|
4671
|
+
"hasDynamicHelp": false,
|
|
4672
|
+
"multiple": false,
|
|
4673
|
+
"type": "option"
|
|
4674
|
+
},
|
|
4675
|
+
"debug": {
|
|
4676
|
+
"char": "d",
|
|
4677
|
+
"description": "Activate debug mode (more logs)",
|
|
4678
|
+
"name": "debug",
|
|
4679
|
+
"allowNo": false,
|
|
4680
|
+
"type": "boolean"
|
|
4681
|
+
},
|
|
4682
|
+
"websocket": {
|
|
4683
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
4684
|
+
"name": "websocket",
|
|
4685
|
+
"hasDynamicHelp": false,
|
|
4686
|
+
"multiple": false,
|
|
4687
|
+
"type": "option"
|
|
4688
|
+
},
|
|
4689
|
+
"skipauth": {
|
|
4690
|
+
"description": "Skip authentication check when a default username is required",
|
|
4691
|
+
"name": "skipauth",
|
|
4692
|
+
"allowNo": false,
|
|
4693
|
+
"type": "boolean"
|
|
4694
|
+
}
|
|
4695
|
+
},
|
|
4696
|
+
"hasDynamicHelp": false,
|
|
4697
|
+
"hiddenAliases": [],
|
|
4698
|
+
"id": "hardis:git:pull-requests:extract",
|
|
4699
|
+
"pluginAlias": "sfdx-hardis",
|
|
4700
|
+
"pluginName": "sfdx-hardis",
|
|
4701
|
+
"pluginType": "core",
|
|
4702
|
+
"strict": true,
|
|
4703
|
+
"enableJsonFlag": true,
|
|
4704
|
+
"title": "Extract pull requests",
|
|
4705
|
+
"requiresProject": true,
|
|
4706
|
+
"isESM": true,
|
|
4707
|
+
"relativePath": [
|
|
4708
|
+
"lib",
|
|
4709
|
+
"commands",
|
|
4710
|
+
"hardis",
|
|
4711
|
+
"git",
|
|
4712
|
+
"pull-requests",
|
|
4713
|
+
"extract.js"
|
|
4714
|
+
],
|
|
4715
|
+
"aliasPermutations": [],
|
|
4716
|
+
"permutations": [
|
|
4717
|
+
"hardis:git:pull-requests:extract",
|
|
4718
|
+
"git:hardis:pull-requests:extract",
|
|
4719
|
+
"git:pull-requests:hardis:extract",
|
|
4720
|
+
"git:pull-requests:extract:hardis",
|
|
4721
|
+
"hardis:pull-requests:git:extract",
|
|
4722
|
+
"pull-requests:hardis:git:extract",
|
|
4723
|
+
"pull-requests:git:hardis:extract",
|
|
4724
|
+
"pull-requests:git:extract:hardis",
|
|
4725
|
+
"hardis:pull-requests:extract:git",
|
|
4726
|
+
"pull-requests:hardis:extract:git",
|
|
4727
|
+
"pull-requests:extract:hardis:git",
|
|
4728
|
+
"pull-requests:extract:git:hardis",
|
|
4729
|
+
"hardis:git:extract:pull-requests",
|
|
4730
|
+
"git:hardis:extract:pull-requests",
|
|
4731
|
+
"git:extract:hardis:pull-requests",
|
|
4732
|
+
"git:extract:pull-requests:hardis",
|
|
4733
|
+
"hardis:extract:git:pull-requests",
|
|
4734
|
+
"extract:hardis:git:pull-requests",
|
|
4735
|
+
"extract:git:hardis:pull-requests",
|
|
4736
|
+
"extract:git:pull-requests:hardis",
|
|
4737
|
+
"hardis:extract:pull-requests:git",
|
|
4738
|
+
"extract:hardis:pull-requests:git",
|
|
4739
|
+
"extract:pull-requests:hardis:git",
|
|
4740
|
+
"extract:pull-requests:git:hardis"
|
|
4741
|
+
]
|
|
4742
|
+
},
|
|
4743
4743
|
"hardis:org:community:update": {
|
|
4744
4744
|
"aliases": [],
|
|
4745
4745
|
"args": {},
|
|
@@ -5807,6 +5807,243 @@
|
|
|
5807
5807
|
"import:files:org:hardis"
|
|
5808
5808
|
]
|
|
5809
5809
|
},
|
|
5810
|
+
"hardis:org:generate:packagexmlfull": {
|
|
5811
|
+
"aliases": [],
|
|
5812
|
+
"args": {},
|
|
5813
|
+
"description": "\n## Command Behavior\n\n**Generates a comprehensive `package.xml` file for a Salesforce org, including all metadata components, even managed ones.**\n\nThis command is essential for various Salesforce development and administration tasks, especially when you need a complete snapshot of an org's metadata. It goes beyond typical source tracking by including managed package components, which is crucial for understanding the full metadata footprint of an org.\n\nKey functionalities:\n\n- **Full Org Metadata Retrieval:** Connects to a specified Salesforce org (or prompts for one if not provided) and retrieves a complete list of all metadata types and their members.\n- **Managed Package Inclusion:** Unlike standard source retrieval, this command explicitly includes metadata from managed packages, providing a truly comprehensive `package.xml`.\n- **Customizable Output:** Allows you to specify the output file path for the generated `package.xml`.\n- **Interactive Org Selection:** If no target org is specified, it interactively prompts the user to choose an org. (or use --no-prompt to skip this step)\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **Salesforce Metadata API Interaction:** It leverages the Salesforce Metadata API to list all available metadata types and then retrieve all components for each type.\n- **`buildOrgManifest` Utility:** The core logic for querying the org's metadata and constructing the `package.xml` is encapsulated within the `buildOrgManifest` utility function.\n- **XML Generation:** It dynamically builds the XML structure of the `package.xml` file, including the `types` and `members` elements for all retrieved metadata.\n- **File System Operations:** It writes the generated `package.xml` file to the specified output path.\n- **Interactive Prompts:** Uses `promptOrgUsernameDefault` to guide the user in selecting the target Salesforce org.\n</details>\n",
|
|
5814
|
+
"examples": [
|
|
5815
|
+
"$ sf hardis:org:generate:packagexmlfull",
|
|
5816
|
+
"$ sf hardis:org:generate:packagexmlfull --outputfile /tmp/packagexmlfull.xml",
|
|
5817
|
+
"$ sf hardis:org:generate:packagexmlfull --target-org nico@example.com"
|
|
5818
|
+
],
|
|
5819
|
+
"flags": {
|
|
5820
|
+
"json": {
|
|
5821
|
+
"description": "Format output as json.",
|
|
5822
|
+
"helpGroup": "GLOBAL",
|
|
5823
|
+
"name": "json",
|
|
5824
|
+
"allowNo": false,
|
|
5825
|
+
"type": "boolean"
|
|
5826
|
+
},
|
|
5827
|
+
"flags-dir": {
|
|
5828
|
+
"helpGroup": "GLOBAL",
|
|
5829
|
+
"name": "flags-dir",
|
|
5830
|
+
"summary": "Import flag values from a directory.",
|
|
5831
|
+
"hasDynamicHelp": false,
|
|
5832
|
+
"multiple": false,
|
|
5833
|
+
"type": "option"
|
|
5834
|
+
},
|
|
5835
|
+
"outputfile": {
|
|
5836
|
+
"description": "Output package.xml file",
|
|
5837
|
+
"name": "outputfile",
|
|
5838
|
+
"hasDynamicHelp": false,
|
|
5839
|
+
"multiple": false,
|
|
5840
|
+
"type": "option"
|
|
5841
|
+
},
|
|
5842
|
+
"debug": {
|
|
5843
|
+
"char": "d",
|
|
5844
|
+
"description": "Activate debug mode (more logs)",
|
|
5845
|
+
"name": "debug",
|
|
5846
|
+
"allowNo": false,
|
|
5847
|
+
"type": "boolean"
|
|
5848
|
+
},
|
|
5849
|
+
"no-prompt": {
|
|
5850
|
+
"char": "n",
|
|
5851
|
+
"description": "Do not prompt for org username, use the default one",
|
|
5852
|
+
"name": "no-prompt",
|
|
5853
|
+
"allowNo": false,
|
|
5854
|
+
"type": "boolean"
|
|
5855
|
+
},
|
|
5856
|
+
"websocket": {
|
|
5857
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
5858
|
+
"name": "websocket",
|
|
5859
|
+
"hasDynamicHelp": false,
|
|
5860
|
+
"multiple": false,
|
|
5861
|
+
"type": "option"
|
|
5862
|
+
},
|
|
5863
|
+
"skipauth": {
|
|
5864
|
+
"description": "Skip authentication check when a default username is required",
|
|
5865
|
+
"name": "skipauth",
|
|
5866
|
+
"allowNo": false,
|
|
5867
|
+
"type": "boolean"
|
|
5868
|
+
},
|
|
5869
|
+
"target-org": {
|
|
5870
|
+
"aliases": [
|
|
5871
|
+
"targetusername",
|
|
5872
|
+
"u"
|
|
5873
|
+
],
|
|
5874
|
+
"char": "o",
|
|
5875
|
+
"deprecateAliases": true,
|
|
5876
|
+
"name": "target-org",
|
|
5877
|
+
"noCacheDefault": true,
|
|
5878
|
+
"required": true,
|
|
5879
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
5880
|
+
"hasDynamicHelp": true,
|
|
5881
|
+
"multiple": false,
|
|
5882
|
+
"type": "option"
|
|
5883
|
+
}
|
|
5884
|
+
},
|
|
5885
|
+
"hasDynamicHelp": true,
|
|
5886
|
+
"hiddenAliases": [],
|
|
5887
|
+
"id": "hardis:org:generate:packagexmlfull",
|
|
5888
|
+
"pluginAlias": "sfdx-hardis",
|
|
5889
|
+
"pluginName": "sfdx-hardis",
|
|
5890
|
+
"pluginType": "core",
|
|
5891
|
+
"strict": true,
|
|
5892
|
+
"enableJsonFlag": true,
|
|
5893
|
+
"title": "Generate Full Org package.xml",
|
|
5894
|
+
"requiresProject": false,
|
|
5895
|
+
"isESM": true,
|
|
5896
|
+
"relativePath": [
|
|
5897
|
+
"lib",
|
|
5898
|
+
"commands",
|
|
5899
|
+
"hardis",
|
|
5900
|
+
"org",
|
|
5901
|
+
"generate",
|
|
5902
|
+
"packagexmlfull.js"
|
|
5903
|
+
],
|
|
5904
|
+
"aliasPermutations": [],
|
|
5905
|
+
"permutations": [
|
|
5906
|
+
"hardis:org:generate:packagexmlfull",
|
|
5907
|
+
"org:hardis:generate:packagexmlfull",
|
|
5908
|
+
"org:generate:hardis:packagexmlfull",
|
|
5909
|
+
"org:generate:packagexmlfull:hardis",
|
|
5910
|
+
"hardis:generate:org:packagexmlfull",
|
|
5911
|
+
"generate:hardis:org:packagexmlfull",
|
|
5912
|
+
"generate:org:hardis:packagexmlfull",
|
|
5913
|
+
"generate:org:packagexmlfull:hardis",
|
|
5914
|
+
"hardis:generate:packagexmlfull:org",
|
|
5915
|
+
"generate:hardis:packagexmlfull:org",
|
|
5916
|
+
"generate:packagexmlfull:hardis:org",
|
|
5917
|
+
"generate:packagexmlfull:org:hardis",
|
|
5918
|
+
"hardis:org:packagexmlfull:generate",
|
|
5919
|
+
"org:hardis:packagexmlfull:generate",
|
|
5920
|
+
"org:packagexmlfull:hardis:generate",
|
|
5921
|
+
"org:packagexmlfull:generate:hardis",
|
|
5922
|
+
"hardis:packagexmlfull:org:generate",
|
|
5923
|
+
"packagexmlfull:hardis:org:generate",
|
|
5924
|
+
"packagexmlfull:org:hardis:generate",
|
|
5925
|
+
"packagexmlfull:org:generate:hardis",
|
|
5926
|
+
"hardis:packagexmlfull:generate:org",
|
|
5927
|
+
"packagexmlfull:hardis:generate:org",
|
|
5928
|
+
"packagexmlfull:generate:hardis:org",
|
|
5929
|
+
"packagexmlfull:generate:org:hardis"
|
|
5930
|
+
]
|
|
5931
|
+
},
|
|
5932
|
+
"hardis:org:fix:listviewmine": {
|
|
5933
|
+
"aliases": [],
|
|
5934
|
+
"args": {},
|
|
5935
|
+
"description": "Fix listviews whose scope Mine has been replaced by Everything\n\n[](https://nicolas.vuillamy.fr/invalid-scope-mine-not-allowed-deploy-your-listviews-anyway-443aceca8ac7)\n\nList of ListViews can be:\n\n- read from .sfdx-hardis.yml file in property **listViewsToSetToMine**\n- sent in argument listviews\n\nNote: property **listViewsToSetToMine** can be auto-generated by command hardis:work:save if .sfdx-hardis.yml contains the following configuration\n\n```yaml\nautoCleanTypes:\n - listViewsMine\n```\n\n- Example of sfdx-hardis.yml property `listViewsToSetToMine`:\n\n```yaml\nlistViewsToSetToMine:\n - \"force-app/main/default/objects/Operation__c/listViews/MyCurrentOperations.listView-meta.xml\"\n - \"force-app/main/default/objects/Operation__c/listViews/MyFinalizedOperations.listView-meta.xml\"\n - \"force-app/main/default/objects/Opportunity/listViews/Default_Opportunity_Pipeline.listView-meta.xml\"\n - \"force-app/main/default/objects/Opportunity/listViews/MyCurrentSubscriptions.listView-meta.xml\"\n - \"force-app/main/default/objects/Opportunity/listViews/MySubscriptions.listView-meta.xml\"\n - \"force-app/main/default/objects/Account/listViews/MyActivePartners.listView-meta.xml\"\n```\n\n- If manually written, this could also be:\n\n```yaml\nlistViewsToSetToMine:\n - \"Operation__c:MyCurrentOperations\"\n - \"Operation__c:MyFinalizedOperations\"\n - \"Opportunity:Default_Opportunity_Pipeline\"\n - \"Opportunity:MyCurrentSubscriptions\"\n - \"Opportunity:MySubscriptions\"\n - \"Account:MyActivePartners\"\n```\n\nTroubleshooting: if you need to run this command from an alpine-linux based docker image, use this workaround in your dockerfile:\n\n```dockerfile\n# Do not use puppeteer embedded chromium\nRUN apk add --update --no-cache chromium\nENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=\"true\"\nENV CHROMIUM_PATH=\"/usr/bin/chromium-browser\"\nENV PUPPETEER_EXECUTABLE_PATH=\"$\\{CHROMIUM_PATH}\" // remove \\ before {\n```\n",
|
|
5936
|
+
"examples": [
|
|
5937
|
+
"$ sf hardis:org:fix:listviewmine",
|
|
5938
|
+
"$ sf hardis:org:fix:listviewmine --listviews Opportunity:MySubscriptions,Account:MyActivePartners"
|
|
5939
|
+
],
|
|
5940
|
+
"flags": {
|
|
5941
|
+
"json": {
|
|
5942
|
+
"description": "Format output as json.",
|
|
5943
|
+
"helpGroup": "GLOBAL",
|
|
5944
|
+
"name": "json",
|
|
5945
|
+
"allowNo": false,
|
|
5946
|
+
"type": "boolean"
|
|
5947
|
+
},
|
|
5948
|
+
"flags-dir": {
|
|
5949
|
+
"helpGroup": "GLOBAL",
|
|
5950
|
+
"name": "flags-dir",
|
|
5951
|
+
"summary": "Import flag values from a directory.",
|
|
5952
|
+
"hasDynamicHelp": false,
|
|
5953
|
+
"multiple": false,
|
|
5954
|
+
"type": "option"
|
|
5955
|
+
},
|
|
5956
|
+
"listviews": {
|
|
5957
|
+
"char": "l",
|
|
5958
|
+
"description": "Comma-separated list of listviews following format Object:ListViewName\nExample: Contact:MyContacts,Contact:MyActiveContacts,Opportunity:MYClosedOpportunities",
|
|
5959
|
+
"name": "listviews",
|
|
5960
|
+
"hasDynamicHelp": false,
|
|
5961
|
+
"multiple": false,
|
|
5962
|
+
"type": "option"
|
|
5963
|
+
},
|
|
5964
|
+
"debug": {
|
|
5965
|
+
"char": "d",
|
|
5966
|
+
"description": "Activate debug mode (more logs)",
|
|
5967
|
+
"name": "debug",
|
|
5968
|
+
"allowNo": false,
|
|
5969
|
+
"type": "boolean"
|
|
5970
|
+
},
|
|
5971
|
+
"websocket": {
|
|
5972
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
5973
|
+
"name": "websocket",
|
|
5974
|
+
"hasDynamicHelp": false,
|
|
5975
|
+
"multiple": false,
|
|
5976
|
+
"type": "option"
|
|
5977
|
+
},
|
|
5978
|
+
"skipauth": {
|
|
5979
|
+
"description": "Skip authentication check when a default username is required",
|
|
5980
|
+
"name": "skipauth",
|
|
5981
|
+
"allowNo": false,
|
|
5982
|
+
"type": "boolean"
|
|
5983
|
+
},
|
|
5984
|
+
"target-org": {
|
|
5985
|
+
"aliases": [
|
|
5986
|
+
"targetusername",
|
|
5987
|
+
"u"
|
|
5988
|
+
],
|
|
5989
|
+
"char": "o",
|
|
5990
|
+
"deprecateAliases": true,
|
|
5991
|
+
"name": "target-org",
|
|
5992
|
+
"noCacheDefault": true,
|
|
5993
|
+
"required": true,
|
|
5994
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
5995
|
+
"hasDynamicHelp": true,
|
|
5996
|
+
"multiple": false,
|
|
5997
|
+
"type": "option"
|
|
5998
|
+
}
|
|
5999
|
+
},
|
|
6000
|
+
"hasDynamicHelp": true,
|
|
6001
|
+
"hiddenAliases": [],
|
|
6002
|
+
"id": "hardis:org:fix:listviewmine",
|
|
6003
|
+
"pluginAlias": "sfdx-hardis",
|
|
6004
|
+
"pluginName": "sfdx-hardis",
|
|
6005
|
+
"pluginType": "core",
|
|
6006
|
+
"strict": true,
|
|
6007
|
+
"enableJsonFlag": true,
|
|
6008
|
+
"title": "Fix listviews with ",
|
|
6009
|
+
"requiresProject": true,
|
|
6010
|
+
"isESM": true,
|
|
6011
|
+
"relativePath": [
|
|
6012
|
+
"lib",
|
|
6013
|
+
"commands",
|
|
6014
|
+
"hardis",
|
|
6015
|
+
"org",
|
|
6016
|
+
"fix",
|
|
6017
|
+
"listviewmine.js"
|
|
6018
|
+
],
|
|
6019
|
+
"aliasPermutations": [],
|
|
6020
|
+
"permutations": [
|
|
6021
|
+
"hardis:org:fix:listviewmine",
|
|
6022
|
+
"org:hardis:fix:listviewmine",
|
|
6023
|
+
"org:fix:hardis:listviewmine",
|
|
6024
|
+
"org:fix:listviewmine:hardis",
|
|
6025
|
+
"hardis:fix:org:listviewmine",
|
|
6026
|
+
"fix:hardis:org:listviewmine",
|
|
6027
|
+
"fix:org:hardis:listviewmine",
|
|
6028
|
+
"fix:org:listviewmine:hardis",
|
|
6029
|
+
"hardis:fix:listviewmine:org",
|
|
6030
|
+
"fix:hardis:listviewmine:org",
|
|
6031
|
+
"fix:listviewmine:hardis:org",
|
|
6032
|
+
"fix:listviewmine:org:hardis",
|
|
6033
|
+
"hardis:org:listviewmine:fix",
|
|
6034
|
+
"org:hardis:listviewmine:fix",
|
|
6035
|
+
"org:listviewmine:hardis:fix",
|
|
6036
|
+
"org:listviewmine:fix:hardis",
|
|
6037
|
+
"hardis:listviewmine:org:fix",
|
|
6038
|
+
"listviewmine:hardis:org:fix",
|
|
6039
|
+
"listviewmine:org:hardis:fix",
|
|
6040
|
+
"listviewmine:org:fix:hardis",
|
|
6041
|
+
"hardis:listviewmine:fix:org",
|
|
6042
|
+
"listviewmine:hardis:fix:org",
|
|
6043
|
+
"listviewmine:fix:hardis:org",
|
|
6044
|
+
"listviewmine:fix:org:hardis"
|
|
6045
|
+
]
|
|
6046
|
+
},
|
|
5810
6047
|
"hardis:org:diagnose:audittrail": {
|
|
5811
6048
|
"aliases": [],
|
|
5812
6049
|
"args": {},
|
|
@@ -7039,272 +7276,35 @@
|
|
|
7039
7276
|
"commands",
|
|
7040
7277
|
"hardis",
|
|
7041
7278
|
"org",
|
|
7042
|
-
"diagnose",
|
|
7043
|
-
"unusedusers.js"
|
|
7044
|
-
],
|
|
7045
|
-
"aliasPermutations": [],
|
|
7046
|
-
"permutations": [
|
|
7047
|
-
"hardis:org:diagnose:unusedusers",
|
|
7048
|
-
"org:hardis:diagnose:unusedusers",
|
|
7049
|
-
"org:diagnose:hardis:unusedusers",
|
|
7050
|
-
"org:diagnose:unusedusers:hardis",
|
|
7051
|
-
"hardis:diagnose:org:unusedusers",
|
|
7052
|
-
"diagnose:hardis:org:unusedusers",
|
|
7053
|
-
"diagnose:org:hardis:unusedusers",
|
|
7054
|
-
"diagnose:org:unusedusers:hardis",
|
|
7055
|
-
"hardis:diagnose:unusedusers:org",
|
|
7056
|
-
"diagnose:hardis:unusedusers:org",
|
|
7057
|
-
"diagnose:unusedusers:hardis:org",
|
|
7058
|
-
"diagnose:unusedusers:org:hardis",
|
|
7059
|
-
"hardis:org:unusedusers:diagnose",
|
|
7060
|
-
"org:hardis:unusedusers:diagnose",
|
|
7061
|
-
"org:unusedusers:hardis:diagnose",
|
|
7062
|
-
"org:unusedusers:diagnose:hardis",
|
|
7063
|
-
"hardis:unusedusers:org:diagnose",
|
|
7064
|
-
"unusedusers:hardis:org:diagnose",
|
|
7065
|
-
"unusedusers:org:hardis:diagnose",
|
|
7066
|
-
"unusedusers:org:diagnose:hardis",
|
|
7067
|
-
"hardis:unusedusers:diagnose:org",
|
|
7068
|
-
"unusedusers:hardis:diagnose:org",
|
|
7069
|
-
"unusedusers:diagnose:hardis:org",
|
|
7070
|
-
"unusedusers:diagnose:org:hardis"
|
|
7071
|
-
]
|
|
7072
|
-
},
|
|
7073
|
-
"hardis:org:fix:listviewmine": {
|
|
7074
|
-
"aliases": [],
|
|
7075
|
-
"args": {},
|
|
7076
|
-
"description": "Fix listviews whose scope Mine has been replaced by Everything\n\n[](https://nicolas.vuillamy.fr/invalid-scope-mine-not-allowed-deploy-your-listviews-anyway-443aceca8ac7)\n\nList of ListViews can be:\n\n- read from .sfdx-hardis.yml file in property **listViewsToSetToMine**\n- sent in argument listviews\n\nNote: property **listViewsToSetToMine** can be auto-generated by command hardis:work:save if .sfdx-hardis.yml contains the following configuration\n\n```yaml\nautoCleanTypes:\n - listViewsMine\n```\n\n- Example of sfdx-hardis.yml property `listViewsToSetToMine`:\n\n```yaml\nlistViewsToSetToMine:\n - \"force-app/main/default/objects/Operation__c/listViews/MyCurrentOperations.listView-meta.xml\"\n - \"force-app/main/default/objects/Operation__c/listViews/MyFinalizedOperations.listView-meta.xml\"\n - \"force-app/main/default/objects/Opportunity/listViews/Default_Opportunity_Pipeline.listView-meta.xml\"\n - \"force-app/main/default/objects/Opportunity/listViews/MyCurrentSubscriptions.listView-meta.xml\"\n - \"force-app/main/default/objects/Opportunity/listViews/MySubscriptions.listView-meta.xml\"\n - \"force-app/main/default/objects/Account/listViews/MyActivePartners.listView-meta.xml\"\n```\n\n- If manually written, this could also be:\n\n```yaml\nlistViewsToSetToMine:\n - \"Operation__c:MyCurrentOperations\"\n - \"Operation__c:MyFinalizedOperations\"\n - \"Opportunity:Default_Opportunity_Pipeline\"\n - \"Opportunity:MyCurrentSubscriptions\"\n - \"Opportunity:MySubscriptions\"\n - \"Account:MyActivePartners\"\n```\n\nTroubleshooting: if you need to run this command from an alpine-linux based docker image, use this workaround in your dockerfile:\n\n```dockerfile\n# Do not use puppeteer embedded chromium\nRUN apk add --update --no-cache chromium\nENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=\"true\"\nENV CHROMIUM_PATH=\"/usr/bin/chromium-browser\"\nENV PUPPETEER_EXECUTABLE_PATH=\"$\\{CHROMIUM_PATH}\" // remove \\ before {\n```\n",
|
|
7077
|
-
"examples": [
|
|
7078
|
-
"$ sf hardis:org:fix:listviewmine",
|
|
7079
|
-
"$ sf hardis:org:fix:listviewmine --listviews Opportunity:MySubscriptions,Account:MyActivePartners"
|
|
7080
|
-
],
|
|
7081
|
-
"flags": {
|
|
7082
|
-
"json": {
|
|
7083
|
-
"description": "Format output as json.",
|
|
7084
|
-
"helpGroup": "GLOBAL",
|
|
7085
|
-
"name": "json",
|
|
7086
|
-
"allowNo": false,
|
|
7087
|
-
"type": "boolean"
|
|
7088
|
-
},
|
|
7089
|
-
"flags-dir": {
|
|
7090
|
-
"helpGroup": "GLOBAL",
|
|
7091
|
-
"name": "flags-dir",
|
|
7092
|
-
"summary": "Import flag values from a directory.",
|
|
7093
|
-
"hasDynamicHelp": false,
|
|
7094
|
-
"multiple": false,
|
|
7095
|
-
"type": "option"
|
|
7096
|
-
},
|
|
7097
|
-
"listviews": {
|
|
7098
|
-
"char": "l",
|
|
7099
|
-
"description": "Comma-separated list of listviews following format Object:ListViewName\nExample: Contact:MyContacts,Contact:MyActiveContacts,Opportunity:MYClosedOpportunities",
|
|
7100
|
-
"name": "listviews",
|
|
7101
|
-
"hasDynamicHelp": false,
|
|
7102
|
-
"multiple": false,
|
|
7103
|
-
"type": "option"
|
|
7104
|
-
},
|
|
7105
|
-
"debug": {
|
|
7106
|
-
"char": "d",
|
|
7107
|
-
"description": "Activate debug mode (more logs)",
|
|
7108
|
-
"name": "debug",
|
|
7109
|
-
"allowNo": false,
|
|
7110
|
-
"type": "boolean"
|
|
7111
|
-
},
|
|
7112
|
-
"websocket": {
|
|
7113
|
-
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
7114
|
-
"name": "websocket",
|
|
7115
|
-
"hasDynamicHelp": false,
|
|
7116
|
-
"multiple": false,
|
|
7117
|
-
"type": "option"
|
|
7118
|
-
},
|
|
7119
|
-
"skipauth": {
|
|
7120
|
-
"description": "Skip authentication check when a default username is required",
|
|
7121
|
-
"name": "skipauth",
|
|
7122
|
-
"allowNo": false,
|
|
7123
|
-
"type": "boolean"
|
|
7124
|
-
},
|
|
7125
|
-
"target-org": {
|
|
7126
|
-
"aliases": [
|
|
7127
|
-
"targetusername",
|
|
7128
|
-
"u"
|
|
7129
|
-
],
|
|
7130
|
-
"char": "o",
|
|
7131
|
-
"deprecateAliases": true,
|
|
7132
|
-
"name": "target-org",
|
|
7133
|
-
"noCacheDefault": true,
|
|
7134
|
-
"required": true,
|
|
7135
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
7136
|
-
"hasDynamicHelp": true,
|
|
7137
|
-
"multiple": false,
|
|
7138
|
-
"type": "option"
|
|
7139
|
-
}
|
|
7140
|
-
},
|
|
7141
|
-
"hasDynamicHelp": true,
|
|
7142
|
-
"hiddenAliases": [],
|
|
7143
|
-
"id": "hardis:org:fix:listviewmine",
|
|
7144
|
-
"pluginAlias": "sfdx-hardis",
|
|
7145
|
-
"pluginName": "sfdx-hardis",
|
|
7146
|
-
"pluginType": "core",
|
|
7147
|
-
"strict": true,
|
|
7148
|
-
"enableJsonFlag": true,
|
|
7149
|
-
"title": "Fix listviews with ",
|
|
7150
|
-
"requiresProject": true,
|
|
7151
|
-
"isESM": true,
|
|
7152
|
-
"relativePath": [
|
|
7153
|
-
"lib",
|
|
7154
|
-
"commands",
|
|
7155
|
-
"hardis",
|
|
7156
|
-
"org",
|
|
7157
|
-
"fix",
|
|
7158
|
-
"listviewmine.js"
|
|
7159
|
-
],
|
|
7160
|
-
"aliasPermutations": [],
|
|
7161
|
-
"permutations": [
|
|
7162
|
-
"hardis:org:fix:listviewmine",
|
|
7163
|
-
"org:hardis:fix:listviewmine",
|
|
7164
|
-
"org:fix:hardis:listviewmine",
|
|
7165
|
-
"org:fix:listviewmine:hardis",
|
|
7166
|
-
"hardis:fix:org:listviewmine",
|
|
7167
|
-
"fix:hardis:org:listviewmine",
|
|
7168
|
-
"fix:org:hardis:listviewmine",
|
|
7169
|
-
"fix:org:listviewmine:hardis",
|
|
7170
|
-
"hardis:fix:listviewmine:org",
|
|
7171
|
-
"fix:hardis:listviewmine:org",
|
|
7172
|
-
"fix:listviewmine:hardis:org",
|
|
7173
|
-
"fix:listviewmine:org:hardis",
|
|
7174
|
-
"hardis:org:listviewmine:fix",
|
|
7175
|
-
"org:hardis:listviewmine:fix",
|
|
7176
|
-
"org:listviewmine:hardis:fix",
|
|
7177
|
-
"org:listviewmine:fix:hardis",
|
|
7178
|
-
"hardis:listviewmine:org:fix",
|
|
7179
|
-
"listviewmine:hardis:org:fix",
|
|
7180
|
-
"listviewmine:org:hardis:fix",
|
|
7181
|
-
"listviewmine:org:fix:hardis",
|
|
7182
|
-
"hardis:listviewmine:fix:org",
|
|
7183
|
-
"listviewmine:hardis:fix:org",
|
|
7184
|
-
"listviewmine:fix:hardis:org",
|
|
7185
|
-
"listviewmine:fix:org:hardis"
|
|
7186
|
-
]
|
|
7187
|
-
},
|
|
7188
|
-
"hardis:org:generate:packagexmlfull": {
|
|
7189
|
-
"aliases": [],
|
|
7190
|
-
"args": {},
|
|
7191
|
-
"description": "\n## Command Behavior\n\n**Generates a comprehensive `package.xml` file for a Salesforce org, including all metadata components, even managed ones.**\n\nThis command is essential for various Salesforce development and administration tasks, especially when you need a complete snapshot of an org's metadata. It goes beyond typical source tracking by including managed package components, which is crucial for understanding the full metadata footprint of an org.\n\nKey functionalities:\n\n- **Full Org Metadata Retrieval:** Connects to a specified Salesforce org (or prompts for one if not provided) and retrieves a complete list of all metadata types and their members.\n- **Managed Package Inclusion:** Unlike standard source retrieval, this command explicitly includes metadata from managed packages, providing a truly comprehensive `package.xml`.\n- **Customizable Output:** Allows you to specify the output file path for the generated `package.xml`.\n- **Interactive Org Selection:** If no target org is specified, it interactively prompts the user to choose an org. (or use --no-prompt to skip this step)\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **Salesforce Metadata API Interaction:** It leverages the Salesforce Metadata API to list all available metadata types and then retrieve all components for each type.\n- **`buildOrgManifest` Utility:** The core logic for querying the org's metadata and constructing the `package.xml` is encapsulated within the `buildOrgManifest` utility function.\n- **XML Generation:** It dynamically builds the XML structure of the `package.xml` file, including the `types` and `members` elements for all retrieved metadata.\n- **File System Operations:** It writes the generated `package.xml` file to the specified output path.\n- **Interactive Prompts:** Uses `promptOrgUsernameDefault` to guide the user in selecting the target Salesforce org.\n</details>\n",
|
|
7192
|
-
"examples": [
|
|
7193
|
-
"$ sf hardis:org:generate:packagexmlfull",
|
|
7194
|
-
"$ sf hardis:org:generate:packagexmlfull --outputfile /tmp/packagexmlfull.xml",
|
|
7195
|
-
"$ sf hardis:org:generate:packagexmlfull --target-org nico@example.com"
|
|
7196
|
-
],
|
|
7197
|
-
"flags": {
|
|
7198
|
-
"json": {
|
|
7199
|
-
"description": "Format output as json.",
|
|
7200
|
-
"helpGroup": "GLOBAL",
|
|
7201
|
-
"name": "json",
|
|
7202
|
-
"allowNo": false,
|
|
7203
|
-
"type": "boolean"
|
|
7204
|
-
},
|
|
7205
|
-
"flags-dir": {
|
|
7206
|
-
"helpGroup": "GLOBAL",
|
|
7207
|
-
"name": "flags-dir",
|
|
7208
|
-
"summary": "Import flag values from a directory.",
|
|
7209
|
-
"hasDynamicHelp": false,
|
|
7210
|
-
"multiple": false,
|
|
7211
|
-
"type": "option"
|
|
7212
|
-
},
|
|
7213
|
-
"outputfile": {
|
|
7214
|
-
"description": "Output package.xml file",
|
|
7215
|
-
"name": "outputfile",
|
|
7216
|
-
"hasDynamicHelp": false,
|
|
7217
|
-
"multiple": false,
|
|
7218
|
-
"type": "option"
|
|
7219
|
-
},
|
|
7220
|
-
"debug": {
|
|
7221
|
-
"char": "d",
|
|
7222
|
-
"description": "Activate debug mode (more logs)",
|
|
7223
|
-
"name": "debug",
|
|
7224
|
-
"allowNo": false,
|
|
7225
|
-
"type": "boolean"
|
|
7226
|
-
},
|
|
7227
|
-
"no-prompt": {
|
|
7228
|
-
"char": "n",
|
|
7229
|
-
"description": "Do not prompt for org username, use the default one",
|
|
7230
|
-
"name": "no-prompt",
|
|
7231
|
-
"allowNo": false,
|
|
7232
|
-
"type": "boolean"
|
|
7233
|
-
},
|
|
7234
|
-
"websocket": {
|
|
7235
|
-
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
7236
|
-
"name": "websocket",
|
|
7237
|
-
"hasDynamicHelp": false,
|
|
7238
|
-
"multiple": false,
|
|
7239
|
-
"type": "option"
|
|
7240
|
-
},
|
|
7241
|
-
"skipauth": {
|
|
7242
|
-
"description": "Skip authentication check when a default username is required",
|
|
7243
|
-
"name": "skipauth",
|
|
7244
|
-
"allowNo": false,
|
|
7245
|
-
"type": "boolean"
|
|
7246
|
-
},
|
|
7247
|
-
"target-org": {
|
|
7248
|
-
"aliases": [
|
|
7249
|
-
"targetusername",
|
|
7250
|
-
"u"
|
|
7251
|
-
],
|
|
7252
|
-
"char": "o",
|
|
7253
|
-
"deprecateAliases": true,
|
|
7254
|
-
"name": "target-org",
|
|
7255
|
-
"noCacheDefault": true,
|
|
7256
|
-
"required": true,
|
|
7257
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
7258
|
-
"hasDynamicHelp": true,
|
|
7259
|
-
"multiple": false,
|
|
7260
|
-
"type": "option"
|
|
7261
|
-
}
|
|
7262
|
-
},
|
|
7263
|
-
"hasDynamicHelp": true,
|
|
7264
|
-
"hiddenAliases": [],
|
|
7265
|
-
"id": "hardis:org:generate:packagexmlfull",
|
|
7266
|
-
"pluginAlias": "sfdx-hardis",
|
|
7267
|
-
"pluginName": "sfdx-hardis",
|
|
7268
|
-
"pluginType": "core",
|
|
7269
|
-
"strict": true,
|
|
7270
|
-
"enableJsonFlag": true,
|
|
7271
|
-
"title": "Generate Full Org package.xml",
|
|
7272
|
-
"requiresProject": false,
|
|
7273
|
-
"isESM": true,
|
|
7274
|
-
"relativePath": [
|
|
7275
|
-
"lib",
|
|
7276
|
-
"commands",
|
|
7277
|
-
"hardis",
|
|
7278
|
-
"org",
|
|
7279
|
-
"generate",
|
|
7280
|
-
"packagexmlfull.js"
|
|
7279
|
+
"diagnose",
|
|
7280
|
+
"unusedusers.js"
|
|
7281
7281
|
],
|
|
7282
7282
|
"aliasPermutations": [],
|
|
7283
7283
|
"permutations": [
|
|
7284
|
-
"hardis:org:
|
|
7285
|
-
"org:hardis:
|
|
7286
|
-
"org:
|
|
7287
|
-
"org:
|
|
7288
|
-
"hardis:
|
|
7289
|
-
"
|
|
7290
|
-
"
|
|
7291
|
-
"
|
|
7292
|
-
"hardis:
|
|
7293
|
-
"
|
|
7294
|
-
"
|
|
7295
|
-
"
|
|
7296
|
-
"hardis:org:
|
|
7297
|
-
"org:hardis:
|
|
7298
|
-
"org:
|
|
7299
|
-
"org:
|
|
7300
|
-
"hardis:
|
|
7301
|
-
"
|
|
7302
|
-
"
|
|
7303
|
-
"
|
|
7304
|
-
"hardis:
|
|
7305
|
-
"
|
|
7306
|
-
"
|
|
7307
|
-
"
|
|
7284
|
+
"hardis:org:diagnose:unusedusers",
|
|
7285
|
+
"org:hardis:diagnose:unusedusers",
|
|
7286
|
+
"org:diagnose:hardis:unusedusers",
|
|
7287
|
+
"org:diagnose:unusedusers:hardis",
|
|
7288
|
+
"hardis:diagnose:org:unusedusers",
|
|
7289
|
+
"diagnose:hardis:org:unusedusers",
|
|
7290
|
+
"diagnose:org:hardis:unusedusers",
|
|
7291
|
+
"diagnose:org:unusedusers:hardis",
|
|
7292
|
+
"hardis:diagnose:unusedusers:org",
|
|
7293
|
+
"diagnose:hardis:unusedusers:org",
|
|
7294
|
+
"diagnose:unusedusers:hardis:org",
|
|
7295
|
+
"diagnose:unusedusers:org:hardis",
|
|
7296
|
+
"hardis:org:unusedusers:diagnose",
|
|
7297
|
+
"org:hardis:unusedusers:diagnose",
|
|
7298
|
+
"org:unusedusers:hardis:diagnose",
|
|
7299
|
+
"org:unusedusers:diagnose:hardis",
|
|
7300
|
+
"hardis:unusedusers:org:diagnose",
|
|
7301
|
+
"unusedusers:hardis:org:diagnose",
|
|
7302
|
+
"unusedusers:org:hardis:diagnose",
|
|
7303
|
+
"unusedusers:org:diagnose:hardis",
|
|
7304
|
+
"hardis:unusedusers:diagnose:org",
|
|
7305
|
+
"unusedusers:hardis:diagnose:org",
|
|
7306
|
+
"unusedusers:diagnose:hardis:org",
|
|
7307
|
+
"unusedusers:diagnose:org:hardis"
|
|
7308
7308
|
]
|
|
7309
7309
|
},
|
|
7310
7310
|
"hardis:org:monitor:all": {
|
|
@@ -9818,6 +9818,109 @@
|
|
|
9818
9818
|
"auth:configure:project:hardis"
|
|
9819
9819
|
]
|
|
9820
9820
|
},
|
|
9821
|
+
"hardis:project:convert:profilestopermsets": {
|
|
9822
|
+
"aliases": [],
|
|
9823
|
+
"args": {},
|
|
9824
|
+
"description": "\n## Command Behavior\n\n**Converts existing Salesforce Profiles into Permission Sets, facilitating a more granular and recommended security model.**\n\nThis command helps in migrating permissions from Profiles to Permission Sets, which is a best practice for managing user access in Salesforce. It creates a new Permission Set for each specified Profile, adopting a naming convention of `PS_PROFILENAME`.\n\nKey functionalities:\n\n- **Profile to Permission Set Conversion:** Automatically extracts permissions from a Profile and creates a corresponding Permission Set.\n- **Naming Convention:** New Permission Sets are named with a `PS_` prefix followed by the Profile name (e.g., `PS_Standard_User`).\n- **Exclusion Filter:** Allows you to exclude specific Profiles from the conversion process using the `--except` flag.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **External Plugin Integration:** It relies on the `shane-sfdx-plugins` (specifically the `sf shane:profile:convert` command) to perform the actual conversion.\n- **File System Scan:** It reads the contents of the `force-app/main/default/profiles` directory to identify all available Profile metadata files.\n- **Command Execution:** For each identified Profile (that is not excluded), it constructs and executes the `sf shane:profile:convert` command with the appropriate Profile name and desired Permission Set name.\n- **Error Handling:** Includes basic error handling for the external command execution.\n</details>\n",
|
|
9825
|
+
"examples": [
|
|
9826
|
+
"$ sf hardis:project:convert:profilestopermsets"
|
|
9827
|
+
],
|
|
9828
|
+
"flags": {
|
|
9829
|
+
"json": {
|
|
9830
|
+
"description": "Format output as json.",
|
|
9831
|
+
"helpGroup": "GLOBAL",
|
|
9832
|
+
"name": "json",
|
|
9833
|
+
"allowNo": false,
|
|
9834
|
+
"type": "boolean"
|
|
9835
|
+
},
|
|
9836
|
+
"flags-dir": {
|
|
9837
|
+
"helpGroup": "GLOBAL",
|
|
9838
|
+
"name": "flags-dir",
|
|
9839
|
+
"summary": "Import flag values from a directory.",
|
|
9840
|
+
"hasDynamicHelp": false,
|
|
9841
|
+
"multiple": false,
|
|
9842
|
+
"type": "option"
|
|
9843
|
+
},
|
|
9844
|
+
"except": {
|
|
9845
|
+
"char": "e",
|
|
9846
|
+
"description": "List of filters",
|
|
9847
|
+
"name": "except",
|
|
9848
|
+
"default": [],
|
|
9849
|
+
"hasDynamicHelp": false,
|
|
9850
|
+
"multiple": true,
|
|
9851
|
+
"type": "option"
|
|
9852
|
+
},
|
|
9853
|
+
"debug": {
|
|
9854
|
+
"char": "d",
|
|
9855
|
+
"description": "Activate debug mode (more logs)",
|
|
9856
|
+
"name": "debug",
|
|
9857
|
+
"allowNo": false,
|
|
9858
|
+
"type": "boolean"
|
|
9859
|
+
},
|
|
9860
|
+
"websocket": {
|
|
9861
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
9862
|
+
"name": "websocket",
|
|
9863
|
+
"hasDynamicHelp": false,
|
|
9864
|
+
"multiple": false,
|
|
9865
|
+
"type": "option"
|
|
9866
|
+
},
|
|
9867
|
+
"skipauth": {
|
|
9868
|
+
"description": "Skip authentication check when a default username is required",
|
|
9869
|
+
"name": "skipauth",
|
|
9870
|
+
"allowNo": false,
|
|
9871
|
+
"type": "boolean"
|
|
9872
|
+
}
|
|
9873
|
+
},
|
|
9874
|
+
"hasDynamicHelp": false,
|
|
9875
|
+
"hiddenAliases": [],
|
|
9876
|
+
"id": "hardis:project:convert:profilestopermsets",
|
|
9877
|
+
"pluginAlias": "sfdx-hardis",
|
|
9878
|
+
"pluginName": "sfdx-hardis",
|
|
9879
|
+
"pluginType": "core",
|
|
9880
|
+
"strict": true,
|
|
9881
|
+
"enableJsonFlag": true,
|
|
9882
|
+
"title": "Convert Profiles into Permission Sets",
|
|
9883
|
+
"requiresProject": true,
|
|
9884
|
+
"requiresSfdxPlugins": [
|
|
9885
|
+
"shane-sfdx-plugins"
|
|
9886
|
+
],
|
|
9887
|
+
"isESM": true,
|
|
9888
|
+
"relativePath": [
|
|
9889
|
+
"lib",
|
|
9890
|
+
"commands",
|
|
9891
|
+
"hardis",
|
|
9892
|
+
"project",
|
|
9893
|
+
"convert",
|
|
9894
|
+
"profilestopermsets.js"
|
|
9895
|
+
],
|
|
9896
|
+
"aliasPermutations": [],
|
|
9897
|
+
"permutations": [
|
|
9898
|
+
"hardis:project:convert:profilestopermsets",
|
|
9899
|
+
"project:hardis:convert:profilestopermsets",
|
|
9900
|
+
"project:convert:hardis:profilestopermsets",
|
|
9901
|
+
"project:convert:profilestopermsets:hardis",
|
|
9902
|
+
"hardis:convert:project:profilestopermsets",
|
|
9903
|
+
"convert:hardis:project:profilestopermsets",
|
|
9904
|
+
"convert:project:hardis:profilestopermsets",
|
|
9905
|
+
"convert:project:profilestopermsets:hardis",
|
|
9906
|
+
"hardis:convert:profilestopermsets:project",
|
|
9907
|
+
"convert:hardis:profilestopermsets:project",
|
|
9908
|
+
"convert:profilestopermsets:hardis:project",
|
|
9909
|
+
"convert:profilestopermsets:project:hardis",
|
|
9910
|
+
"hardis:project:profilestopermsets:convert",
|
|
9911
|
+
"project:hardis:profilestopermsets:convert",
|
|
9912
|
+
"project:profilestopermsets:hardis:convert",
|
|
9913
|
+
"project:profilestopermsets:convert:hardis",
|
|
9914
|
+
"hardis:profilestopermsets:project:convert",
|
|
9915
|
+
"profilestopermsets:hardis:project:convert",
|
|
9916
|
+
"profilestopermsets:project:hardis:convert",
|
|
9917
|
+
"profilestopermsets:project:convert:hardis",
|
|
9918
|
+
"hardis:profilestopermsets:convert:project",
|
|
9919
|
+
"profilestopermsets:hardis:convert:project",
|
|
9920
|
+
"profilestopermsets:convert:hardis:project",
|
|
9921
|
+
"profilestopermsets:convert:project:hardis"
|
|
9922
|
+
]
|
|
9923
|
+
},
|
|
9821
9924
|
"hardis:project:clean:emptyitems": {
|
|
9822
9925
|
"aliases": [],
|
|
9823
9926
|
"args": {},
|
|
@@ -11303,109 +11406,6 @@
|
|
|
11303
11406
|
"xml:clean:project:hardis"
|
|
11304
11407
|
]
|
|
11305
11408
|
},
|
|
11306
|
-
"hardis:project:convert:profilestopermsets": {
|
|
11307
|
-
"aliases": [],
|
|
11308
|
-
"args": {},
|
|
11309
|
-
"description": "\n## Command Behavior\n\n**Converts existing Salesforce Profiles into Permission Sets, facilitating a more granular and recommended security model.**\n\nThis command helps in migrating permissions from Profiles to Permission Sets, which is a best practice for managing user access in Salesforce. It creates a new Permission Set for each specified Profile, adopting a naming convention of `PS_PROFILENAME`.\n\nKey functionalities:\n\n- **Profile to Permission Set Conversion:** Automatically extracts permissions from a Profile and creates a corresponding Permission Set.\n- **Naming Convention:** New Permission Sets are named with a `PS_` prefix followed by the Profile name (e.g., `PS_Standard_User`).\n- **Exclusion Filter:** Allows you to exclude specific Profiles from the conversion process using the `--except` flag.\n\n<details markdown=\"1\">\n<summary>Technical explanations</summary>\n\nThe command's technical implementation involves:\n\n- **External Plugin Integration:** It relies on the `shane-sfdx-plugins` (specifically the `sf shane:profile:convert` command) to perform the actual conversion.\n- **File System Scan:** It reads the contents of the `force-app/main/default/profiles` directory to identify all available Profile metadata files.\n- **Command Execution:** For each identified Profile (that is not excluded), it constructs and executes the `sf shane:profile:convert` command with the appropriate Profile name and desired Permission Set name.\n- **Error Handling:** Includes basic error handling for the external command execution.\n</details>\n",
|
|
11310
|
-
"examples": [
|
|
11311
|
-
"$ sf hardis:project:convert:profilestopermsets"
|
|
11312
|
-
],
|
|
11313
|
-
"flags": {
|
|
11314
|
-
"json": {
|
|
11315
|
-
"description": "Format output as json.",
|
|
11316
|
-
"helpGroup": "GLOBAL",
|
|
11317
|
-
"name": "json",
|
|
11318
|
-
"allowNo": false,
|
|
11319
|
-
"type": "boolean"
|
|
11320
|
-
},
|
|
11321
|
-
"flags-dir": {
|
|
11322
|
-
"helpGroup": "GLOBAL",
|
|
11323
|
-
"name": "flags-dir",
|
|
11324
|
-
"summary": "Import flag values from a directory.",
|
|
11325
|
-
"hasDynamicHelp": false,
|
|
11326
|
-
"multiple": false,
|
|
11327
|
-
"type": "option"
|
|
11328
|
-
},
|
|
11329
|
-
"except": {
|
|
11330
|
-
"char": "e",
|
|
11331
|
-
"description": "List of filters",
|
|
11332
|
-
"name": "except",
|
|
11333
|
-
"default": [],
|
|
11334
|
-
"hasDynamicHelp": false,
|
|
11335
|
-
"multiple": true,
|
|
11336
|
-
"type": "option"
|
|
11337
|
-
},
|
|
11338
|
-
"debug": {
|
|
11339
|
-
"char": "d",
|
|
11340
|
-
"description": "Activate debug mode (more logs)",
|
|
11341
|
-
"name": "debug",
|
|
11342
|
-
"allowNo": false,
|
|
11343
|
-
"type": "boolean"
|
|
11344
|
-
},
|
|
11345
|
-
"websocket": {
|
|
11346
|
-
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
11347
|
-
"name": "websocket",
|
|
11348
|
-
"hasDynamicHelp": false,
|
|
11349
|
-
"multiple": false,
|
|
11350
|
-
"type": "option"
|
|
11351
|
-
},
|
|
11352
|
-
"skipauth": {
|
|
11353
|
-
"description": "Skip authentication check when a default username is required",
|
|
11354
|
-
"name": "skipauth",
|
|
11355
|
-
"allowNo": false,
|
|
11356
|
-
"type": "boolean"
|
|
11357
|
-
}
|
|
11358
|
-
},
|
|
11359
|
-
"hasDynamicHelp": false,
|
|
11360
|
-
"hiddenAliases": [],
|
|
11361
|
-
"id": "hardis:project:convert:profilestopermsets",
|
|
11362
|
-
"pluginAlias": "sfdx-hardis",
|
|
11363
|
-
"pluginName": "sfdx-hardis",
|
|
11364
|
-
"pluginType": "core",
|
|
11365
|
-
"strict": true,
|
|
11366
|
-
"enableJsonFlag": true,
|
|
11367
|
-
"title": "Convert Profiles into Permission Sets",
|
|
11368
|
-
"requiresProject": true,
|
|
11369
|
-
"requiresSfdxPlugins": [
|
|
11370
|
-
"shane-sfdx-plugins"
|
|
11371
|
-
],
|
|
11372
|
-
"isESM": true,
|
|
11373
|
-
"relativePath": [
|
|
11374
|
-
"lib",
|
|
11375
|
-
"commands",
|
|
11376
|
-
"hardis",
|
|
11377
|
-
"project",
|
|
11378
|
-
"convert",
|
|
11379
|
-
"profilestopermsets.js"
|
|
11380
|
-
],
|
|
11381
|
-
"aliasPermutations": [],
|
|
11382
|
-
"permutations": [
|
|
11383
|
-
"hardis:project:convert:profilestopermsets",
|
|
11384
|
-
"project:hardis:convert:profilestopermsets",
|
|
11385
|
-
"project:convert:hardis:profilestopermsets",
|
|
11386
|
-
"project:convert:profilestopermsets:hardis",
|
|
11387
|
-
"hardis:convert:project:profilestopermsets",
|
|
11388
|
-
"convert:hardis:project:profilestopermsets",
|
|
11389
|
-
"convert:project:hardis:profilestopermsets",
|
|
11390
|
-
"convert:project:profilestopermsets:hardis",
|
|
11391
|
-
"hardis:convert:profilestopermsets:project",
|
|
11392
|
-
"convert:hardis:profilestopermsets:project",
|
|
11393
|
-
"convert:profilestopermsets:hardis:project",
|
|
11394
|
-
"convert:profilestopermsets:project:hardis",
|
|
11395
|
-
"hardis:project:profilestopermsets:convert",
|
|
11396
|
-
"project:hardis:profilestopermsets:convert",
|
|
11397
|
-
"project:profilestopermsets:hardis:convert",
|
|
11398
|
-
"project:profilestopermsets:convert:hardis",
|
|
11399
|
-
"hardis:profilestopermsets:project:convert",
|
|
11400
|
-
"profilestopermsets:hardis:project:convert",
|
|
11401
|
-
"profilestopermsets:project:hardis:convert",
|
|
11402
|
-
"profilestopermsets:project:convert:hardis",
|
|
11403
|
-
"hardis:profilestopermsets:convert:project",
|
|
11404
|
-
"profilestopermsets:hardis:convert:project",
|
|
11405
|
-
"profilestopermsets:convert:hardis:project",
|
|
11406
|
-
"profilestopermsets:convert:project:hardis"
|
|
11407
|
-
]
|
|
11408
|
-
},
|
|
11409
11409
|
"hardis:project:deploy:notify": {
|
|
11410
11410
|
"aliases": [],
|
|
11411
11411
|
"args": {},
|
|
@@ -15369,5 +15369,5 @@
|
|
|
15369
15369
|
]
|
|
15370
15370
|
}
|
|
15371
15371
|
},
|
|
15372
|
-
"version": "6.7.2-
|
|
15372
|
+
"version": "6.7.2-beta202510122255.0"
|
|
15373
15373
|
}
|