Skip to content

Commit

Permalink
project doc + regenerate
Browse files Browse the repository at this point in the history
  • Loading branch information
nvuillam committed Jan 3, 2025
1 parent 13a9ccd commit b95881d
Show file tree
Hide file tree
Showing 134 changed files with 2,115 additions and 1,612 deletions.
6 changes: 2 additions & 4 deletions defaults/mkdocs-project-doc/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ repo_url: https://github.com/hardisgroupco/sfdx-hardis
edit_uri: tree/master/docs
site_author: Nicolas Vuillamy
site_description: Salesforce project documentation generated by sfdx-hardis
copyright: Doc generated by <a href="https://sfdx-hardis.cloudity.com/hardis/doc/plugin/generate/" target="_blank">sfdx-hardis</a>
copyright: Doc generated by <a href="https://sfdx-hardis.cloudity.com/" target="_blank">sfdx-hardis</a>
theme:
name: material
custom_dir: docs/overrides
Expand Down Expand Up @@ -41,12 +41,10 @@ extra_css:
extra:
social:
- icon: fontawesome/regular/circle-question
link: https://github.com/hardisgroupcom/sfdx-hardis/issues
link: https://cloudity.com/#form
title: Need help ? Post an issue :)
- icon: fontawesome/brands/github
link: https://github.com/hardisgroupcom/sfdx-hardis
- icon: fontawesome/brands/docker
link: https://hub.docker.com/r/oxsecurity/megalinter
- icon: fontawesome/brands/twitter
link: https://twitter.com/NicolasVuillamy
generator: false
Expand Down
Binary file added docs/assets/images/flow-visual-git-diff-2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/assets/images/flow-visual-git-diff.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/project-documentation.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
301 changes: 156 additions & 145 deletions docs/commands.md

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions docs/hardis/auth/login.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@ Login to salesforce org

## Parameters

| Name | Type | Description | Default | Required | Options |
|:-------------------|:-------:|:--------------------------------------------------------------|:-------:|:--------:|:-------:|
| debug<br/>-d | boolean | Activate debug mode (more logs) | | | |
| devhub<br/>-h | boolean | Also connect associated DevHub | | | |
| flags-dir | option | undefined | | | |
| instanceurl<br/>-r | option | URL of org instance | | | |
| json | boolean | Format output as json. | | | |
| scratchorg<br/>-s | boolean | Scratch org | | | |
| skipauth | boolean | Skip authentication check when a default username is required | | | |
| websocket | option | Websocket host:port for VsCode SFDX Hardis UI integration | | | |
|Name|Type|Description|Default|Required|Options|
|:---|:--:|:----------|:-----:|:------:|:-----:|
|debug<br/>-d|boolean|Activate debug mode (more logs)||||
|devhub<br/>-h|boolean|Also connect associated DevHub||||
|flags-dir|option|undefined||||
|instanceurl<br/>-r|option|URL of org instance||||
|json|boolean|Format output as json.||||
|scratchorg<br/>-s|boolean|Scratch org||||
|skipauth|boolean|Skip authentication check when a default username is required||||
|websocket|option|Websocket host:port for VsCode SFDX Hardis UI integration||||

## Examples

```shell
sf hardis:auth:login
$ sf hardis:auth:login
```


16 changes: 8 additions & 8 deletions docs/hardis/cache/clear.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ Clear cache generated by sfdx-hardis

## Parameters

| Name | Type | Description | Default | Required | Options |
|:-------------|:-------:|:--------------------------------------------------------------|:-------:|:--------:|:-------:|
| debug<br/>-d | boolean | Activate debug mode (more logs) | | | |
| flags-dir | option | undefined | | | |
| json | boolean | Format output as json. | | | |
| skipauth | boolean | Skip authentication check when a default username is required | | | |
| websocket | option | Websocket host:port for VsCode SFDX Hardis UI integration | | | |
|Name|Type|Description|Default|Required|Options|
|:---|:--:|:----------|:-----:|:------:|:-----:|
|debug<br/>-d|boolean|Activate debug mode (more logs)||||
|flags-dir|option|undefined||||
|json|boolean|Format output as json.||||
|skipauth|boolean|Skip authentication check when a default username is required||||
|websocket|option|Websocket host:port for VsCode SFDX Hardis UI integration||||

## Examples

```shell
sf hardis:cache:clear
$ sf hardis:cache:clear
```


18 changes: 9 additions & 9 deletions docs/hardis/config/get.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ Returns sfdx-hardis project config for a given level

## Parameters

| Name | Type | Description | Default | Required | Options |
|:-------------|:-------:|:--------------------------------------------------------------|:-------:|:--------:|:---------------------------:|
| debug<br/>-d | boolean | Activate debug mode (more logs) | | | |
| flags-dir | option | undefined | | | |
| json | boolean | Format output as json. | | | |
| level<br/>-l | option | project,branch or user | project | | project<br/>branch<br/>user |
| skipauth | boolean | Skip authentication check when a default username is required | | | |
| websocket | option | Websocket host:port for VsCode SFDX Hardis UI integration | | | |
|Name|Type|Description|Default|Required|Options|
|:---|:--:|:----------|:-----:|:------:|:-----:|
|debug<br/>-d|boolean|Activate debug mode (more logs)||||
|flags-dir|option|undefined||||
|json|boolean|Format output as json.||||
|level<br/>-l|option|project,branch or user|project||project<br/>branch<br/>user|
|skipauth|boolean|Skip authentication check when a default username is required||||
|websocket|option|Websocket host:port for VsCode SFDX Hardis UI integration||||

## Examples

```shell
sf hardis:project:deploy:sources:metadata
$ sf hardis:project:deploy:sources:metadata
```


70 changes: 70 additions & 0 deletions docs/hardis/deploy/quick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
<!-- This file has been generated with command 'sf hardis:doc:plugin:generate'. Please do not update it manually or it may be overwritten -->
# hardis:deploy:quick

## Description

sfdx-hardis wrapper for **sf project deploy quick** that displays tips to solve deployment errors.

Note: Use **--json** argument to have better results

[![Assisted solving of Salesforce deployments errors](https://github.com/hardisgroupcom/sfdx-hardis/raw/main/docs/assets/images/article-deployment-errors.jpg)](https://nicolas.vuillamy.fr/assisted-solving-of-salesforce-deployments-errors-47f3666a9ed0)

[See documentation of Salesforce command](https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_project_commands_unified.htm#cli_reference_project_deploy_quick_unified)

### Deployment pre or post commands

You can define command lines to run before or after a deployment, with parameters:

- **id**: Unique Id for the command
- **label**: Human readable label for the command
- **skipIfError**: If defined to "true", the post-command won't be run if there is a deployment failure
- **context**: Defines the context where the command will be run. Can be **all** (default), **check-deployment-only** or **process-deployment-only**
- **runOnlyOnceByOrg**: If set to true, the command will be run only one time per org. A record of SfdxHardisTrace__c is stored to make that possible (it needs to be existing in target org)

If the commands are not the same depending on the target org, you can define them into **config/branches/.sfdx-hardis-BRANCHNAME.yml** instead of root **config/.sfdx-hardis.yml**

Example:

```yaml
commandsPreDeploy:
- id: knowledgeUnassign
label: Remove KnowledgeUser right to the user who has it
command: sf data update record --sobject User --where "UserPermissionsKnowledgeUser='true'" --values "UserPermissionsKnowledgeUser='false'" --json
- id: knowledgeAssign
label: Assign Knowledge user to the deployment user
command: sf data update record --sobject User --where "Username='[email protected]'" --values "UserPermissionsKnowledgeUser='true'" --json

commandsPostDeploy:
- id: knowledgeUnassign
label: Remove KnowledgeUser right to the user who has it
command: sf data update record --sobject User --where "UserPermissionsKnowledgeUser='true'" --values "UserPermissionsKnowledgeUser='false'" --json
- id: knowledgeAssign
label: Assign Knowledge user to desired username
command: sf data update record --sobject User --where "Username='[email protected]'" --values "UserPermissionsKnowledgeUser='true'" --json
- id: someActionToRunJustOneTime
label: And to run only if deployment is success
command: sf sfdmu:run ...
skipIfError: true
context: process-deployment-only
runOnlyOnceByOrg: true
```
## Parameters
|Name|Type|Description|Default|Required|Options|
|:---|:--:|:----------|:-----:|:------:|:-----:|
|--job-id<br/>-i|option|job-id||||
|--use-most-recent<br/>-r|boolean|use-most-recent||||
|api-version<br/>-a|option|api-version||||
|async|boolean|async||||
|debug|boolean|debug||||
|flags-dir|option|undefined||||
|json|boolean|Format output as json.||||
|target-org<br/>-o|option|undefined||||
|tests|option|tests||||
|wait<br/>-w|option|wait|33|||
## Examples
84 changes: 84 additions & 0 deletions docs/hardis/deploy/start.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
<!-- This file has been generated with command 'sf hardis:doc:plugin:generate'. Please do not update it manually or it may be overwritten -->
# hardis:deploy:start

## Description

sfdx-hardis wrapper for **sf project deploy start** that displays tips to solve deployment errors.

Note: Use **--json** argument to have better results

[![Assisted solving of Salesforce deployments errors](https://github.com/hardisgroupcom/sfdx-hardis/raw/main/docs/assets/images/article-deployment-errors.jpg)](https://nicolas.vuillamy.fr/assisted-solving-of-salesforce-deployments-errors-47f3666a9ed0)

[See documentation of Salesforce command](https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_project_commands_unified.htm#cli_reference_project_deploy_start_unified)

### Deployment pre or post commands

You can define command lines to run before or after a deployment, with parameters:

- **id**: Unique Id for the command
- **label**: Human readable label for the command
- **skipIfError**: If defined to "true", the post-command won't be run if there is a deployment failure
- **context**: Defines the context where the command will be run. Can be **all** (default), **check-deployment-only** or **process-deployment-only**
- **runOnlyOnceByOrg**: If set to true, the command will be run only one time per org. A record of SfdxHardisTrace__c is stored to make that possible (it needs to be existing in target org)

If the commands are not the same depending on the target org, you can define them into **config/branches/.sfdx-hardis-BRANCHNAME.yml** instead of root **config/.sfdx-hardis.yml**

Example:

```yaml
commandsPreDeploy:
- id: knowledgeUnassign
label: Remove KnowledgeUser right to the user who has it
command: sf data update record --sobject User --where "UserPermissionsKnowledgeUser='true'" --values "UserPermissionsKnowledgeUser='false'" --json
- id: knowledgeAssign
label: Assign Knowledge user to the deployment user
command: sf data update record --sobject User --where "Username='[email protected]'" --values "UserPermissionsKnowledgeUser='true'" --json

commandsPostDeploy:
- id: knowledgeUnassign
label: Remove KnowledgeUser right to the user who has it
command: sf data update record --sobject User --where "UserPermissionsKnowledgeUser='true'" --values "UserPermissionsKnowledgeUser='false'" --json
- id: knowledgeAssign
label: Assign Knowledge user to desired username
command: sf data update record --sobject User --where "Username='[email protected]'" --values "UserPermissionsKnowledgeUser='true'" --json
- id: someActionToRunJustOneTime
label: And to run only if deployment is success
command: sf sfdmu:run ...
skipIfError: true
context: process-deployment-only
runOnlyOnceByOrg: true
```
## Parameters
|Name|Type|Description|Default|Required|Options|
|:---|:--:|:----------|:-----:|:------:|:-----:|
|api-version<br/>-a|option|api-version||||
|async|boolean|async||||
|coverage-formatters|option|coverage-formatters||||
|debug|boolean|debug||||
|dry-run|boolean|dry-run||||
|flags-dir|option|undefined||||
|ignore-conflicts<br/>-c|boolean|ignore-conflicts||||
|ignore-errors<br/>-r|boolean|ignore-errors||||
|ignore-warnings<br/>-g|boolean|ignore-warnings||||
|json|boolean|Format output as json.||||
|junit|boolean|junit||||
|manifest<br/>-x|option|manifest||||
|metadata<br/>-m|option|metadata||||
|metadata-dir|option|metadata-dir||||
|post-destructive-changes|option|post-destructive-changes||||
|pre-destructive-changes|option|pre-destructive-changes||||
|purge-on-delete|boolean|purge-on-delete||||
|results-dir|option|results-dir||||
|single-package|boolean|single-package||||
|source-dir<br/>-d|option|source-dir||||
|target-org<br/>-o|option|undefined||||
|test-level|option|test-level||||
|tests|option|tests||||
|wait<br/>-w|option|wait|33|||
## Examples
84 changes: 84 additions & 0 deletions docs/hardis/deploy/validate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
<!-- This file has been generated with command 'sf hardis:doc:plugin:generate'. Please do not update it manually or it may be overwritten -->
# hardis:deploy:validate

## Description

sfdx-hardis wrapper for **sf project deploy validate** that displays tips to solve deployment errors.

Note: Use **--json** argument to have better results

[![Assisted solving of Salesforce deployments errors](https://github.com/hardisgroupcom/sfdx-hardis/raw/main/docs/assets/images/article-deployment-errors.jpg)](https://nicolas.vuillamy.fr/assisted-solving-of-salesforce-deployments-errors-47f3666a9ed0)

[See documentation of Salesforce command](https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_project_commands_unified.htm#cli_reference_project_deploy_validate_unified)

### Deployment pre or post commands

You can define command lines to run before or after a deployment, with parameters:

- **id**: Unique Id for the command
- **label**: Human readable label for the command
- **skipIfError**: If defined to "true", the post-command won't be run if there is a deployment failure
- **context**: Defines the context where the command will be run. Can be **all** (default), **check-deployment-only** or **process-deployment-only**
- **runOnlyOnceByOrg**: If set to true, the command will be run only one time per org. A record of SfdxHardisTrace__c is stored to make that possible (it needs to be existing in target org)

If the commands are not the same depending on the target org, you can define them into **config/branches/.sfdx-hardis-BRANCHNAME.yml** instead of root **config/.sfdx-hardis.yml**

Example:

```yaml
commandsPreDeploy:
- id: knowledgeUnassign
label: Remove KnowledgeUser right to the user who has it
command: sf data update record --sobject User --where "UserPermissionsKnowledgeUser='true'" --values "UserPermissionsKnowledgeUser='false'" --json
- id: knowledgeAssign
label: Assign Knowledge user to the deployment user
command: sf data update record --sobject User --where "Username='[email protected]'" --values "UserPermissionsKnowledgeUser='true'" --json

commandsPostDeploy:
- id: knowledgeUnassign
label: Remove KnowledgeUser right to the user who has it
command: sf data update record --sobject User --where "UserPermissionsKnowledgeUser='true'" --values "UserPermissionsKnowledgeUser='false'" --json
- id: knowledgeAssign
label: Assign Knowledge user to desired username
command: sf data update record --sobject User --where "Username='[email protected]'" --values "UserPermissionsKnowledgeUser='true'" --json
- id: someActionToRunJustOneTime
label: And to run only if deployment is success
command: sf sfdmu:run ...
skipIfError: true
context: process-deployment-only
runOnlyOnceByOrg: true
```
## Parameters
|Name|Type|Description|Default|Required|Options|
|:---|:--:|:----------|:-----:|:------:|:-----:|
|api-version<br/>-a|option|api-version||||
|async|boolean|async||||
|coverage-formatters|option|coverage-formatters||||
|debug|boolean|debug||||
|dry-run|boolean|dry-run||||
|flags-dir|option|undefined||||
|ignore-conflicts<br/>-c|boolean|ignore-conflicts||||
|ignore-errors<br/>-r|boolean|ignore-errors||||
|ignore-warnings<br/>-g|boolean|ignore-warnings||||
|json|boolean|Format output as json.||||
|junit|boolean|junit||||
|manifest<br/>-x|option|manifest||||
|metadata<br/>-m|option|metadata||||
|metadata-dir|option|metadata-dir||||
|post-destructive-changes|option|post-destructive-changes||||
|pre-destructive-changes|option|pre-destructive-changes||||
|purge-on-delete|boolean|purge-on-delete||||
|results-dir|option|results-dir||||
|single-package|boolean|single-package||||
|source-dir<br/>-d|option|source-dir||||
|target-org<br/>-o|option|undefined||||
|test-level|option|test-level||||
|tests|option|tests||||
|wait<br/>-w|option|wait|33|||
## Examples
18 changes: 9 additions & 9 deletions docs/hardis/doc/extract/permsetgroups.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ Generate markdown files with project documentation

## Parameters

| Name | Type | Description | Default | Required | Options |
|:------------------|:-------:|:------------------------------------------------------------------|:-------:|:--------:|:-------:|
| debug<br/>-d | boolean | Activate debug mode (more logs) | | | |
| flags-dir | option | undefined | | | |
| json | boolean | Format output as json. | | | |
| outputfile<br/>-f | option | Force the path and name of output report file. Must end with .csv | | | |
| skipauth | boolean | Skip authentication check when a default username is required | | | |
| websocket | option | Websocket host:port for VsCode SFDX Hardis UI integration | | | |
|Name|Type|Description|Default|Required|Options|
|:---|:--:|:----------|:-----:|:------:|:-----:|
|debug<br/>-d|boolean|Activate debug mode (more logs)||||
|flags-dir|option|undefined||||
|json|boolean|Format output as json.||||
|outputfile<br/>-f|option|Force the path and name of output report file. Must end with .csv||||
|skipauth|boolean|Skip authentication check when a default username is required||||
|websocket|option|Websocket host:port for VsCode SFDX Hardis UI integration||||

## Examples

```shell
sf hardis:doc:extract:permsetgroups
$ sf hardis:doc:extract:permsetgroups
```


Loading

0 comments on commit b95881d

Please sign in to comment.