Discussion:
[Deluge] #3217: deluge-console does not easily support alternative connections for interactive sessions
Deluge
2018-11-21 04:05:49 UTC
Permalink
#3217: deluge-console does not easily support alternative connections for
interactive sessions
-----------------------------+------------------------------
Reporter: nayfield | Owner:
Type: feature-request | Status: new
Priority: minor | Milestone: 1.3.16
Component: Console UI | Version: 1.3-stable (git)
Keywords: |
-----------------------------+------------------------------
when using deluge-console for non-default connections (different
port/host, user/pass required) a common convention for '''non-
interactive''' commands is to provide arguments such as:

$ deluge-console "connect 127.0.0.1:<altport> ; info ; quit"

However, there is no easy way to script an '''interactive''' console
session for an alternative connection; it requires the user to type in the
connect details after the console starts.

Currently, the following command connects but immediately exits:

$ deluge-console "connect 127.0.0.1<altport>"

This feature request is to act differently for the example command above.
Specifically: when 'connect' is the ''only'' command provided in
arguments, remain in interactive mode and connect as instructed. Do not
change behavior for any other combination of arguments except single
command argument.

--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3217>
Deluge <http://deluge-torrent.org/>
Deluge Project
--
You received this message because you are subscribed to the Google Groups "Deluge Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to deluge-dev+***@googlegroups.com.
To post to this group, send email to deluge-***@googlegroups.com.
Visit this group at https://groups.google.com/group/deluge-dev.
For more options, visit https://groups.google.com/d/optout.
Deluge
2018-11-21 04:07:43 UTC
Permalink
#3217: deluge-console does not easily support alternative connections for
interactive sessions
------------------------------+------------------------------
Reporter: nayfield | Owner:
Type: feature-request | Status: new
Priority: minor | Milestone: 1.3.16
Component: Console UI | Version: 1.3-stable (git)
Resolution: | Keywords:
------------------------------+------------------------------
Changes (by nayfield):

* Attachment "deluge-conn.patch" added.

Minimal patch to implement feature request

--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3217>
Deluge <http://deluge-torrent.org/>
Deluge Project
--
You received this message because you are subscribed to the Google Groups "Deluge Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to deluge-dev+***@googlegroups.com.
To post to this group, send email to deluge-***@googlegroups.com.
Visit this group at https://groups.google.com/group/deluge-dev.
For more options, visit https://groups.google.com/d/optout.
Deluge
2018-11-21 04:17:19 UTC
Permalink
#3217: deluge-console does not easily support alternative connections for
interactive sessions
------------------------------+------------------------------
Reporter: nayfield | Owner:
Type: feature-request | Status: new
Priority: minor | Milestone: 1.3.16
Component: Console UI | Version: 1.3-stable (git)
Resolution: | Keywords:
------------------------------+------------------------------

Comment (by nayfield):

The attached patch (Against 1.3-stable) is a minimal implementation of
this feature request.

It has been tested locally for a few use cases - no args, "connect
<parameters>" , "connect; info ; quit", "info; quit".

As expected the only behavior change with the patch is in the requested
feature of connect as the only arg.

If this is accepted, the code can be further optimized within the "if
args:" block (including moving the help test up there). I did not do this
to make the proposed change clear.

--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3217#comment:1>
Deluge <http://deluge-torrent.org/>
Deluge Project
--
You received this message because you are subscribed to the Google Groups "Deluge Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to deluge-dev+***@googlegroups.com.
To post to this group, send email to deluge-***@googlegroups.com.
Visit this group at https://groups.google.com/group/deluge-dev.
For more options, visit https://groups.google.com/d/optout.
Loading...