Profile List
This is like
git branch.
When listing profiles, the most suitable scope is MultiProfileNoFlow.
There are a number of variations of profile listings:
-
Simple: Simple list of profiles within the
PeaceAppDir. -
Filtered: List profiles within the
PeaceAppDirfor some criteria, e.g. excluding aworkspace_initprofile.This is especially relevant when profile parameters are loaded, as the
ProfileParamsmust be the same across the listed profiles to be able to be loaded. -
Augmented: List profiles and some profile parameters.
This is valuable when the user needs to see the profile parameter, such as whether the profile is managing a development environment or a production environment.
Command Creation
To create this command:
-
Build the command context.
- Make sure to register the workspace / profile params types, even if the value for all of them is
None. - Provide the filter function if necessary.
- Make sure to register the workspace / profile params types, even if the value for all of them is
-
Present the list of profiles using the goal output.