foliant-docs / foliant

Comprehensive markdown-based documentation toolkit
https://foliant-docs.github.io/docs/
MIT License
160 stars 9 forks source link

Allow to override default config file name in CLI. #38

Closed artlomov closed 6 years ago

artlomov commented 6 years ago

We need to switch between multiple config files in single Foliant project. New CLI option -c has been added to make command.

moigagoo commented 6 years ago

How about we make it a Path rather than a file name? Feels like a more natural behavior for --config.

artlomov commented 6 years ago

I thought about Path instead of filename. It needs deeper intervention. Tomorrow I’ll try to realize this.

moigagoo commented 6 years ago

On the second thought, file name is better. We already have --path for project path, and by restricting --config to file name we're enforcing that the config must sit in the project dir.