State Discovery and Display
This is like
git fetch
.
This kind of command is intended for state discovery that is expensive – takes more than 500 milliseconds.
Suitable scopes for this command are:
SingleProfileSingleFlow
: For discovering state for one profile.MultiProfileSingleFlow
: For discovering state for multiple profiles.
Command Creation
To create this command:
-
When building the command context:
- Provide the profile.
- Provide the flow ID.
-
Call the
StatesDiscoverCmd
depending on the intended use:These will store the discovered states under the corresponding
$profile/$flow_id
directory asstates_current.yaml
orstates_goal.yaml
. -
If the discovered states are to be displayed, call the relevant state display command(s):
StatesCurrentStoredDisplayCmd
: For stored current states to be displayed.StatesGoalDisplayCmd
: For goal states to be displayed.