Skip to content

Add --config flag for custom config file path#124

Open
aaronmallen wants to merge 1 commit intoDevinR528:mainfrom
aaronmallen:aa/add-config-flag
Open

Add --config flag for custom config file path#124
aaronmallen wants to merge 1 commit intoDevinR528:mainfrom
aaronmallen:aa/add-config-flag

Conversation

@aaronmallen
Copy link

Add a --config CLI flag that allows specifying a custom path to the tomlfmt.toml configuration file. This enables projects to organize their config files in dedicated directories (e.g., .config/).

When --config is provided, the specified path is used directly and an error is returned if the file doesn't exist. When not provided, the existing discovery logic is used (tomlfmt.toml, then .tomlfmt.toml, then defaults).

resolves #123

Add a --config CLI flag that allows specifying a custom path to the
tomlfmt.toml configuration file. This enables projects to organize
their config files in dedicated directories (e.g., .config/).

When --config is provided, the specified path is used directly and an
error is returned if the file doesn't exist. When not provided, the
existing discovery logic is used (tomlfmt.toml, then .tomlfmt.toml,
then defaults).

resolves DevinR528#123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support custom config path for tomlfmt.toml

1 participant