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

#18: Adding Support for --config/-c Flag #19

Merged
merged 5 commits into from Oct 8, 2021

Conversation

lyu4321
Copy link
Contributor

@lyu4321 lyu4321 commented Oct 6, 2021

This PR closes #18.

This PR adds a --config/-c flag option that accepts a JSON config file as an argument. The contents of the file replace command line arguments. For example, using a file named config.json that looks like

{
  "input": "./site",
  "output": "./build"
}

The command

java -jar out\artifacts\ssgApplication_jar\ssgApplication.jar --config config.json

Would replace

java -jar out\artifacts\ssgApplication_jar\ssgApplication.jar --input ./site --output ./build

@lyu4321 lyu4321 marked this pull request as ready for review October 6, 2021 20:19
@lyu4321 lyu4321 changed the title #18: Adding Support for config.json #18: Adding Support for --config/-c Flag Oct 6, 2021
@irenejoeunpark irenejoeunpark merged commit 78eedfb into irenejoeunpark:master Oct 8, 2021
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.

Adding Support for --config/-c Flag
2 participants