Skip to content

hardis:project:clean:flowpositions

Description

Replace all positions in Auto-Layout Flows by 0 to simplify conflicts management

As Flows are defined as Auto-Layout, the edition in Setup UI is not impacted.

Before:

<locationX>380</locationX>
<locationY>259</locationY>

After:

<locationX>0</locationX>
<locationY>0</locationY>

Can be automated at each hardis:work:save if flowPositions is added in .sfdx-hardis.yml autoCleanTypes property

Example in config/.sfdx-hardis.yml:

autoCleanTypes:
  - destructivechanges
  - flowPositions

Parameters

Name Type Description Default Required Options
debug
-d
boolean Activate debug mode (more logs)
folder
-f
option Root folder force-app
json boolean format output as json
loglevel option logging level for this command invocation warn trace
debug
info
warn
error
fatal
skipauth boolean Skip authentication check when a default username is required
websocket option Websocket host:port for VsCode SFDX Hardis UI integration

Examples

$ sfdx hardis:project:clean:flowpositions