-
Notifications
You must be signed in to change notification settings - Fork 118
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
Current error messages are not helpful #27
Comments
@Aluriak thanks for the detailed report, TODO items for better error messages and aliases were sitting in my TODO list for a while, but now that boilr started having users, I'll resolve them 👍 |
Thank you for support. I don't know anything in Go, so will probably not interact with the source code. However, this issue is more a remark than a problem. As i said, with proper aliases the API become very lighweight. |
@Aluriak that's quite alright, participation is a much more valuable contribution to me than code 😄 I see no obstacle to providing a prompt for |
I don't know how to manage properly that option, which could be useful However, just some indication/advices on the README could be enough. Peoples that don't like typing long commands are the most involved in aliasing, and already know what to do. Follows the bash-compliant code i've added to my sources.
Usage:
|
The API feels very heavy to me : laconic outputs, and at least 5 words for most used commands (!).
The problem have a good illustration here:
This is annoying, because i have to forge again a long line
in order to understand why:
And finally forge the full line (which is exactly what i type before… except a dot):
The common practice to avoid the first problem is to print the help directly, eventually with an error message like
[✘] not enough arguments
.A compromise could be to print something like
[✘] not enough arguments (expected: 'boilr template use <template> <dir>')
, which gives a big hint about missing & misplaced arguments.Fixing the second problem can be done (user-side) by adding shell shortcuts, like
function blues() {~/bin/boilr template use $1 .}
, or by providing them in the API directly:Or, just by use working directory if no path is provided:
In both cases, the idea is to provides shortcuts for most common calls. Chances are peoples mostly want to register and use templates in current directory.
Also, the fact that
boilr template save
andboilr template use
don't expect arguments in the same order is… unexpected.The text was updated successfully, but these errors were encountered: