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)
flags-dir option undefined
folder
-f
option Root folder force-app
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

$ sf hardis:project:clean:flowpositions