-
Notifications
You must be signed in to change notification settings - Fork 4
Closed
Description
Observed
-
Action names, as listed in available actions, is based on discovery plugin
-
Except for removing
/actions/**/action.yamlfrom string, naming stricly follows directory path -
So for instance:
integration/applications/roles/event_bus/actions/event-bus/action.yaml- would name action
integration.applications.roles.event_bus:event-bus
- would name action
integration/applications/roles/actions/event-bus/action.yaml- would name action
integration.applications.roles:event-bus
- would name action
integration/applications/actions/event-bus/action.yaml- would name action
integration.applications:event-bus
- would name action
-
Directory architecture may be under external constraints, like matching Ansible pattern for instance, where is required
/roles/- resource names with underscore
_
Expected
- It may be useful to be able to configure globally the transformation of action naming
.{binary-name}/config.yamlfile could introduce a sectionlaunchrctlthat allow user to specify regex to transform naming in specific ways, like
launcrctl:
actions_naming:
- s/\/roles\///g # To remove /roles/
- s/_/-/g # To convert _ to -
Metadata
Metadata
Assignees
Labels
No labels