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

Allow setting flags as config values #351

Closed
brianmcgee opened this issue Jul 17, 2024 · 0 comments · Fixed by #431
Closed

Allow setting flags as config values #351

brianmcgee opened this issue Jul 17, 2024 · 0 comments · Fixed by #431
Labels
enhancement New feature or request

Comments

@brianmcgee
Copy link
Member

Original issue was created here.

In general, should we allow setting default values for cli args in the treefmt.toml file?

@brianmcgee brianmcgee added the enhancement New feature or request label Jul 17, 2024
brianmcgee added a commit that referenced this issue Oct 7, 2024
`treefmt.toml` has been extended to include an entry for most of the flags that can be passed to `treefmt`.

In addition, values can now be specified via the environment, prefixed with `TREEFMT_`.

Finally, the order of precedence for value lookup has been fixed: flag -> env -> treefmt.toml.

Closes #351
@brianmcgee brianmcgee mentioned this issue Oct 7, 2024
1 task
brianmcgee added a commit that referenced this issue Oct 9, 2024
`treefmt.toml` has been extended to include an entry for most of the flags that can be passed to `treefmt`.

In addition, values can now be specified via the environment, prefixed with `TREEFMT_`.

Finally, the order of precedence for value lookup has been fixed: flag -> env -> treefmt.toml.

Closes #351
@brianmcgee brianmcgee mentioned this issue Oct 9, 2024
brianmcgee added a commit that referenced this issue Oct 9, 2024
`treefmt.toml` has been extended to include an entry for most of the flags that can be passed to `treefmt`.

In addition, values can now be specified via the environment, prefixed with `TREEFMT_`.

Finally, the order of precedence for value lookup has been fixed: flag -> env -> treefmt.toml.

Closes #351
brianmcgee added a commit that referenced this issue Oct 9, 2024
`treefmt.toml` has been extended to include an entry for most of the flags that can be passed to `treefmt`.

In addition, values can now be specified via the environment, prefixed with `TREEFMT_`.

Finally, the order of precedence for value lookup has been fixed: flag -> env -> treefmt.toml.

Closes #351
brianmcgee added a commit that referenced this issue Oct 9, 2024
`treefmt.toml` has been extended to include an entry for most of the flags that can be passed to `treefmt`.

In addition, values can now be specified via the environment, prefixed with `TREEFMT_`.

Finally, the order of precedence for value lookup has been fixed: flag -> env -> treefmt.toml.

Closes #351
brianmcgee added a commit that referenced this issue Oct 9, 2024
`treefmt.toml` has been extended to include an entry for most of the flags that can be passed to `treefmt`.

In addition, values can now be specified via the environment, prefixed with `TREEFMT_`.

Finally, the order of precedence for value lookup has been fixed: flag -> env -> treefmt.toml.

Closes #351
brianmcgee added a commit that referenced this issue Oct 9, 2024
`treefmt.toml` has been extended to include an entry for most of the flags that can be passed to `treefmt`.

In addition, values can now be specified via the environment, prefixed with `TREEFMT_`.

Finally, the order of precedence for value lookup has been fixed: flag -> env -> treefmt.toml.

Closes #351
brianmcgee added a commit that referenced this issue Oct 9, 2024
`treefmt.toml` has been extended to include an entry for most of the flags that can be passed to `treefmt`.

In addition, values can now be specified via the environment, prefixed with `TREEFMT_`.

Finally, the order of precedence for value lookup has been fixed: flag -> env -> treefmt.toml.

Closes #351
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant