-
Notifications
You must be signed in to change notification settings - Fork 119
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
Issue multiple commands in one call #6
Comments
Sounds reasonable, I'll have a think about how it can work. FYI, I have made some changes in revisions be219acd and 0d4c6abd to improve untagging performance. (I will still look at your suggestion of reading actions from standard input.) |
This is now implemented. Pass - as the sole argument in order to read from standard input. Let me know of any issues. |
Good to see this progressing. I have a bug report: for example the pretty conventional usage
Result: If you make the obvious modification, removing the quotes, that is broken in a slightly different way: tmsu: New tag 'foo'.
To rewrite the above test-script in the format I suggested, looks like this:
A bit more stretched out, but pretty clear imo I made a working prototype of this idea -- see read_args(), parse_file() , and I realized that a 'prelude' is also a good option. That's a section that comes before actual commands, specifying options to share between every executed command. To illustrate, that would look like
for the same test-script, removing the need to repeat global options like -D or -v in each individual commandline. |
Thanks, I'll take a look. Not sure about the argument per line idea as I'd I think the better solution is if I build a line parser that's aware of Sorry to get your hopes up when it so blatantly doesn't work.
|
Also, you can specify the database before the instruction to read from
|
Parsing now handles quoted text correctly. |
Was this feature removed? Building from latest, I get: $ tmsu -
tmsu: invalid subcommand '-' |
Daan Bakker said:
The text was updated successfully, but these errors were encountered: