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

Support --config with Config File #12

Closed
5 tasks done
oliver-pham opened this issue Oct 5, 2021 · 0 comments · Fixed by #13
Closed
5 tasks done

Support --config with Config File #12

oliver-pham opened this issue Oct 5, 2021 · 0 comments · Fixed by #13
Labels
enhancement New feature or request

Comments

@oliver-pham
Copy link
Contributor

oliver-pham commented Oct 5, 2021

Users want to be able to specify all of their SSG options in a JSON formatted configuration file instead of having to pass them all as command line arguments every time
Suggestions:

  • The -c or --config flags accept a file path to a JSON config file.
  • If the file is missing, or can't be parsed as JSON, exit with an appropriate error message.
  • If the -c or --config option is provided, ignore all other options (i.e., a config file overrides other options on the command line).
  • The program should ignore any options in the config file it doesn't recognize. For example, if the SSG doesn't support stylesheets, ignore a stylesheet property.
  • If the config file is missing any options, assume the usual defaults. For example, use dist/ as the output directory if it isn't specified.
@Yoda-Canada Yoda-Canada added the enhancement New feature or request label Oct 5, 2021
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.

2 participants