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

feat(cli): add --config to specify path to config file #72

Closed
wants to merge 2 commits into from
Closed

feat(cli): add --config to specify path to config file #72

wants to merge 2 commits into from

Conversation

tom-fletcher
Copy link
Contributor

@tom-fletcher tom-fletcher commented Apr 20, 2022

Description (What)

Adds a CLI option of --config, that optionally allows a path to a configuration file to be specified.

Closes #71

Justification (Why)

Other tools, such as ESLint and Prettier, allow the user to specific a configuration path other than the normal one auto-detected. This can be useful for i.e. moving the config files out of the package root and into a config/ folder. Allowing a custom config path brings syncpack into parity with these tools.

How Can This Be Tested?

Create a new syncpack config file i.e. configs/syncpack.json

syncpack --config configs/syncpack.json
syncpack format --config configs/syncpack.json

@JamieMason
Copy link
Owner

Thanks @tom-fletcher will pick up as next task when I'm back on syncpack.

@JamieMason JamieMason closed this in 4b19a13 May 1, 2022
@JamieMason
Copy link
Owner

Released in 7.1.0

@JamieMason JamieMason changed the title feat: add config path option feat(cli): add --config to specify path to config file May 1, 2022
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.

feat: add config path option
2 participants