Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use top level --org when subcommand -org is not used. #3864

Open
alexcb opened this issue Mar 4, 2024 · 0 comments
Open

use top level --org when subcommand -org is not used. #3864

alexcb opened this issue Mar 4, 2024 · 0 comments
Labels
type:enhancement Small feature requests / adjustments

Comments

@alexcb
Copy link
Collaborator

alexcb commented Mar 4, 2024

What existing functionality needs improvement?
earthly has both a top-level --org as well as some commands have a different --org option under the subcommand, for example:

earthly --org=not-this-one secret --org=this-one ls
Error: not a member of org "this-one"

will only use the secret's --org value, and when omitted (e.g. earthly --org=not-this-one secret ls) falls back onto the automatic org detection heuristic

Expected Behavior
Before falling back on the automatic org detection heristic, earthly should attempt using the top-level value of --org=not-this-one.

Expected Examples:

earthly --org=not-this-one secret --org=this-one ls
Error: not a member of org "this-one"
earthly --org=not-this-one secret ls
Error: not a member of org "not-this-one"
@alexcb alexcb added the type:enhancement Small feature requests / adjustments label Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement Small feature requests / adjustments
Projects
Status: No status
Development

No branches or pull requests

1 participant