-
Notifications
You must be signed in to change notification settings - Fork 4
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
choose template straight from cli #22
Conversation
Sorry the Docs are not very clear on this.
You can just pass a path to the template directly using Take a look at the docs here: https://facio.readthedocs.org/en/latest/usage.html#template-options Does this answer your question? :) If you think this could work better or be more clear let me know. |
Yeah, I found this in docs, but I think we could improve this behavior. Maybe we can define base template path (it even could be an array, like $PATH) in config, and then we will be able to provide just a template name to -t option, not full path. I think it can be really convenient. |
Ahh I understand what you mean, yeah I am looking and changing the config to a YAML based config in #18. This would allow multiple templates to be defined something like this:
I think this looks neater and is clearer and hopefully will make it easier to implement what you're after. :) |
choose template straight from cli
So you can now do:
|
Very nice, thanks a lot. |
Hi, again.
I do not really like how
-c
option behaves, right now it only allows to interactively choose template, but what would be more useful, as I think, is to allow to set desired template straight from cli, for instance:facio -n test -c mycooltemplate
facio.cfg:
I'd written some code about 2 months ago just for myself, but after merging with your master branch my changes are not working due to massive code base change.
So I thought this time I should file an issue.
What I think is the best way in this situation is to check if
-c
argument is in defined template otherwise force user to choose from interactive prompt.Tell me what do you think?