This project is archived. Its data is read-only. This project is read-only.
Add support for shortcut commands for plugins
[As discussed](https://gitlab.com/meltano/meltano/-/issues/2544#note_502908659) in #2544, add a new `--command` flag to `meltano invoke` which can run variants of the plugin with different arguments as defined in `meltano.yml`. For example: ```yaml - name: dbt namespace: dbt pip_url: dbt==0.16.1 executable: dbt commands: seed: seed --project-dir $DBT_PROJECT_DIR --profile $DBT_PROFILE --target $MELTANO_EXTRACTOR_NAMESPACE --select $DBT_MODEL snapshot: snapshot --project-dir $DBT_PROJECT_DIR --profile $DBT_PROFILE --target $MELTANO_EXTRACTOR_NAMESPACE --select $DBT_MODEL ``` Which could then be invoked with ~~`meltano invoke --command dbt seed`~~`meltano invoke dbt:seed` (note that the commands above are illustrative and may not actually be correct). This functionality could apply to all plugins that have an executable, regardless of type. The value prop here is to abstract common commands for a plugin to a shortcut so that specific arguments can be shared with other users of the project.
issue