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

Add support for TOML files with -c, --config #10

Closed
ijacobs-cpa opened this issue Oct 4, 2023 · 2 comments · Fixed by #12
Closed

Add support for TOML files with -c, --config #10

ijacobs-cpa opened this issue Oct 4, 2023 · 2 comments · Fixed by #12
Assignees

Comments

@ijacobs-cpa
Copy link
Contributor

I would like to add support for passing TOML files for configuration options as an alternative to providing different options in the command line.

Using -c, --config with an appropriate .toml file as an argument will be accepted as input and will replace any of the individual options in your program (lang, output). To parse the TOML file contents, I'll use the tomli TOML file parser to get the file contents.

If this solution is okay, let me know. Thanks

@Amnish04
Copy link
Owner

Amnish04 commented Oct 4, 2023

Sure, please go ahead with it @ijacobs-cpa .

Note: I just merged a PR with major refactoring to how markdown processing is done. Please pull the latest changes from master before starting your work.

@Amnish04
Copy link
Owner

Amnish04 commented Oct 4, 2023

@ijacobs-cpa Also, I think you should mostly only need to make changes to src/utils/commandline.py file for this

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