-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Increasing transmission-remote -l
parsability
#2299
Comments
I don't mean to sound disrespectful, but what's the use case where parsing a program's output is preferable to just using the JSON output via the RPC interface? To use |
Let me try to answer why not RPC interface. To use RPC there are requirements that make requests by command line utility very hard. For example: authorization headers, tag value, token (which forces to actually do two requests). I needed more info than |
On Sat, Dec 11, 2021 at 05:05:27PM -0800, Daniel Kamil Kozar wrote:
I don't mean to sound disrespectful, but what's the use case where parsing a program's output is preferable to just using the JSON output via the RPC interface? To use `transmission-remote`, your session's RPC interface must be available you must have the correct credentials anyway - might just as well use it directly.
Your question is equivalent to wondering why such plaintext output exists in
the first place. The whole point of this feature AND my request is to easily
parse such output with the standard POSIX tools (awk, cut, etc...). And for
this, you need a delimiter.
So, either an option to get such an output or fixing the ratio overflow thing
as a band-aid to allow inserting the delimiters ourselves is necessary for
this tabular output to be useful for more than human viewing.
|
A patch to add this feature would be fine. "Would a patch be accepted" depends on more than one factor though, e.g. if the patch is 2000 LOC and leaks like crazy I'll send it back for revision 😸 |
Hello.
Parsing the output of
transmission-remote -l
is a pain because:Would a patch adding a
--list-machine
to use a tabulation between each field be accepted?The text was updated successfully, but these errors were encountered: