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

[Feature] Add support option to accept config file #15

Closed
3 tasks done
Kevan-Y opened this issue Oct 5, 2021 · 1 comment · Fixed by #16
Closed
3 tasks done

[Feature] Add support option to accept config file #15

Kevan-Y opened this issue Oct 5, 2021 · 1 comment · Fixed by #16

Comments

@Kevan-Y
Copy link
Contributor

Kevan-Y commented Oct 5, 2021

  • prefix should be -c or --config
  • Should accept only .json file
  • Ignore all option if -c option is passed

Example:
The config file will be JSON formatted. Use below as an example.

{
  "input": "./docs",
  "output": "./web",
  "future-feature": "should be ignored for now"
}

The command line will be able to do this.

{ 
Option 1: use command line arguments:
python main.py --input ./site --output ./build --stylesheet https://cdn.jsdelivr.net/npm/water.css@2/out/water.css --lang fr

Option 2: use a config file
python main.py --config ./ssg-config.json
}
@lmpham1
Copy link
Owner

lmpham1 commented Oct 7, 2021

closed with #16

@lmpham1 lmpham1 closed this as completed Oct 7, 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 a pull request may close this issue.

2 participants