cloudposse / atmos

👽 Terraform Orchestration Tool for DevOps. Keep environment configuration DRY with hierarchical imports of configurations, inheritance, and WAY more. Native support for Terraform and Helmfile.
https://atmos.tools
Apache License 2.0
623 stars 86 forks source link

Atmos custom subcommands may shadow built-in subcommands (e.g. `atmos terraform state`) #575

Open osterman opened 2 months ago

osterman commented 2 months ago

Describe the Bug

If you create a custom subcommand, that has the same arguments as a built-in command, the built-in command is "lost".

e.g.

If we create a custom subcommand atmos terraform state foobar, then all of the built-in atmos terraform state * commands stop working (cannot be found).

Expected Behavior

We should support some order of precedence, and support both. If a custom command is defined, then it would take precedence. Also, all other built-in commands should continue to work.

Steps to Reproduce

See above.

Screenshots

No response

Environment

No response

Additional Context

No response