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

Passing path to markdown folder like CLI argument #10

Open
egregors opened this issue Oct 25, 2019 · 3 comments
Open

Passing path to markdown folder like CLI argument #10

egregors opened this issue Oct 25, 2019 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@egregors
Copy link
Contributor

egregors commented Oct 25, 2019

It will be much more useful if CLI will expect path to markdown dir like arg, like

$ underblog ~/myBlog
...
$ underblog ~/Docs/myCatsBlog
...
$ underblog .
@freetonik
Copy link
Owner

I'm a bit hesitant, tbh. You pass md dir, but what about templates dir? Should underblog assume template dir is current dir? Or 1 level above md dir? Now we're forced to either introduce another CLI argument for templates or introduce implicit behavior.

I'd love underblog to be an opinionated, dumb, barebones tool with virtually zero complexity for the user.

What do you think?

@egregors
Copy link
Contributor Author

I agree. «keep it simple» – the best way to success for such type of programs. But, I believe this kind of customization will be very useful, at least not for MD dir but for an entry point.

For this time we may save the current default behavior, like

$ underblog

will expect templates and MD in the current workdir.
But, if you pass some additional args it will be a custom entry point or even entry points (if you wanna make few your blogs, for example. idk, is it relevant case?):

$ underblog ~/Docs/myBlog

will expect templates and MD it the ~/Docs/myBlog, or

$ underblog ./myCatBlogRU ./myCatBlogEN 

just will build two blogs.

or we may just bail on the this feature :D :D

@freetonik
Copy link
Owner

I agree with the complete entry point as param.

@freetonik freetonik self-assigned this Oct 27, 2019
@freetonik freetonik added the enhancement New feature or request label Oct 27, 2019
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

No branches or pull requests

2 participants