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

proposal: allow setting default flag values for all commands. #4103

Open
alexcb opened this issue May 9, 2024 · 0 comments
Open

proposal: allow setting default flag values for all commands. #4103

alexcb opened this issue May 9, 2024 · 0 comments
Labels
type:proposal A proposal for a new feature

Comments

@alexcb
Copy link
Collaborator

alexcb commented May 9, 2024

Use case

It can become tedious to specify the same flag for a command over and over, e.g. COPY --keep-ts ....

What if we created a new DEFAULT command, that would allow users to set the default hahaviours for each command, e.g.

VERSION 0.8

DEFAULT COPY_KEEP_TS=true

...

If a user has multiple Earthfiles in their project, a child Earthfile could then import defaults from another Earthfile, perhaps like:

VERSION 0.8

IMPORT --with-defaults ..

which would use the same defaults specified under the ../Earthfile.

Expected Behavior

flags would only have to be set once, in a single location.

@alexcb alexcb added the type:proposal A proposal for a new feature label May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:proposal A proposal for a new feature
Projects
Status: No status
Development

No branches or pull requests

1 participant