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 #11

Closed
5 tasks done
batunpc opened this issue Oct 1, 2022 · 2 comments
Closed
5 tasks done

Support --config with Config File #11

batunpc opened this issue Oct 1, 2022 · 2 comments

Comments

@batunpc
Copy link
Contributor

batunpc commented Oct 1, 2022

Hey there! :octocat:

I will be adding the config file to specify all of the potential SSG options/flags in a JSON formatted configuration file instead of having to pass them all as command line arguments every time.

  • 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.

I will go in order and check these boxes as I do

@saminarp
Copy link
Owner

saminarp commented Oct 7, 2022

moved to #12

@saminarp
Copy link
Owner

saminarp commented Oct 7, 2022

Thank you so much!

@saminarp saminarp closed this as completed Oct 7, 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

No branches or pull requests

2 participants