| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Signed-off-by: Andy Grover <agrover@redhat.com>
|
|\
| |
| | |
Remove explicit dependency on /usr/bin/python
|
|/
|
|
|
|
|
|
|
| |
The example script specifies /usr/bin/python, but
the code can all handle python2 or python2, so update
the script to work with either.
Note: this replaces a SPEC-file dependency on /usr/bin/python
with one on /usr/bin/env.
|
|\
| |
| | |
make run_cmdline() log "Running command line" msg to new loglevel
|
| | |
|
|\ \
| | |
| | | |
tweak ConfigShell.run_stdin() to strip whitespace/newline from cmds
|
| |/ |
|
|\ \
| |/
|/| |
Fix failing to pasre par=val parameters
|
|/
|
|
|
|
|
|
| |
Through targetcli-fb to create LIO ceph target device like:
/backstores/user:rbd> create block0 10G pool/rbd1/osd_op_timeout=30
the =30 will be ignored.
Signed-off-by: Xiubo Li <lixiubo@cmss.chinamobile.com>
|
|\
| |
| | |
Add missing dependency on pyparsing and six
|
|/
|
|
| |
Signed-off-by: Christophe Vu-Brugier <cvubrugier@fastmail.fm>
|
|
|
|
|
|
|
|
| |
When dealing with ipv6, we now have paths consisting of square
brackets. We need to add these characters to the path regex for
them to match properly.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
|
|
|
|
|
| |
Previous patch causes problems otherwise in some cases.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
|
|
|
| |
Signed-off-by: Andy Grover <agrover@redhat.com>
|
|\
| |
| | |
Fix the readline not defined error
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
TargetCLI will throw "readline not defined" error when running
it as process in interactive shell mode. The cause of the problem
is the readline module would not be imported in this case.
Set the TERM to empty is to fix readline emits unwanted characters
problem when import it.
Signed-off-by: Chongshi Zhang <zhangcho@us.ibm.com>
|
| |
| |
| |
| | |
Signed-off-by: Andy Grover <agrover@redhat.com>
|
|\ \
| |/
|/| |
Fix import warning
|
|/
|
|
|
|
|
|
| |
[ykaul@ykaul examples]$ ./myshell
./myshell:20: UserWarning: 'configshell' package name for configshell-fb is deprecated, please instead import 'configshell_fb'
import configshell
Instead, importing configshell_fb as configshell
|
|\
| |
| | |
Add Gentoo to the list of distributions that ship configshell-fb
|
|/
|
|
| |
Signed-off-by: Christophe Vu-Brugier <cvubrugier@fastmail.fm>
|
|\
| |
| | |
Remove build scripts for RPM and Debian packages
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Remove the "debian" directory because Debian packagers have reported in
the past that having a "debian" directory makes their work harder when
merging the upstream branch into their packaging branch. Moreover, our
in-repo Debian packaging is less complete than the Debian packaging.
Also remove our in-repo RPM packaging which is probably lagging behind
Fedora's packaging.
Finally, this patch adds a few links to RPM and Debian build scripts in
our README.md.
Signed-off-by: Christophe Vu-Brugier <cvubrugier@fastmail.fm>
|
|
|
|
| |
Signed-off-by: Andy Grover <agrover@redhat.com>
|
|\
| |
| | |
fix typo in GENERALITIES section of help message
|
|/
|
|
| |
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
|
|\
| |
| | |
Change the URL of the GitHub repo to the open-iscsi organization
|
|/
|
|
| |
Signed-off-by: Christophe Vu-Brugier <cvubrugier@fastmail.fm>
|
|\
| |
| | |
fixes to debian package build scripts
|
|/ |
|
|
|
|
|
|
| |
Patch provided by https://github.com/rlenkala
Signed-off-by: Andy Grover <agrover@redhat.com>
|
|
|
|
| |
Signed-off-by: Andy Grover <agrover@redhat.com>
|
|
|
|
|
| |
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andy Grover <agrover@redhat.com>
|
|
|
|
| |
Signed-off-by: Andy Grover <agrover@redhat.com>
|
|\
| |
| | |
Fix completion of IPv6 portals
|
|/
|
|
|
|
|
|
|
|
| |
Allow square brackets in parameters and remove them from readline's
set_completer_delims() so that readline does not remove the square
brackets from the "text" argument in _complete_token_pparam()
This patch fixes issue #20.
Signed-off-by: Christophe Vu-Brugier <cvubrugier@fastmail.fm>
|
|
|
|
|
|
|
|
| |
Experiencing weirdness when MainLoop is not broken out of with an
ExitMainLoop exception. Change handler to do this, and then get the
current focus position using the listbox.focus_position property.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
|
|
|
| |
Signed-off-by: Andy Grover <agrover@redhat.com>
|
|\
| |
| | |
Simplify completion
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* remove the "completions in columns" configuration option
* merge _display_completions() and _display_completions_python()
* remove the hovering hint
* simplify the logic that colorizes options
* use a slice to format the possible completions in columns
Signed-off-by: Christophe Vu-Brugier <cvubrugier@fastmail.fm>
|
|/
|
|
| |
Signed-off-by: Christophe Vu-Brugier <cvubrugier@fastmail.fm>
|
|\
| |
| | |
Fix the command line completion with Python 3 (issue #17)
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The command line completion is broken with Python 3 because the
_display_completions() method raises a TypeError exception.
The root cause is a comparison between a variable named "len" and two
integer values. But because "len" is not defined at all, what is
compared is the builtin len() function and two integers. Python 3
rightly raises a TypeError exception whereas Python 2.7 does not
complain.
The fix is just to remove the "if" block containing the faulty
comparison because it always evaluates to False with Python 2.7 (len()
is always greater than "num_per_line").
This patch fixes issue #17.
Signed-off-by: Christophe Vu-Brugier <cvubrugier@fastmail.fm>
|
|/
|
|
|
|
|
|
|
|
|
| |
Replace '/' with '//' which the floor division operation on both
Python 2 and Python 3.
For more details, see PEP 238 "changing the division operator"
http://www.python.org/dev/peps/pep-0238
Signed-off-by: Christophe Vu-Brugier <cvubrugier@fastmail.fm>
|
|\
| |
| | |
Support Python 3 with "six" instead of running `2to3`
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Replace dict.iteritems() with six.iteritems(dict)
* Use six.string_types instead of basestring
* Remove calls to unicode() in the handle_input() function called by
Urwid: it is not necessary. However, during my tests, I observed
that the Urwid listbox displayed for `cd` is broken: I see garbage
on the screen when moving the cursor.
* Use six.moves to import pickle on Python 3 or cPickle on Python 2
* Use six.moves to call input() on Python 3 or raw_input() on Python 2
* Add classifiers to setup.py
* Sort imports
Signed-off-by: Christophe Vu-Brugier <cvubrugier@fastmail.fm>
|
|
|
|
| |
Signed-off-by: Andy Grover <agrover@redhat.com>
|
|
|
|
|
|
|
|
|
|
| |
We want configshell_fb/ to exist so we can more easily do prerelease
development using PYTHONPATH.
Remove package_dir from setup.py since with this change we don't need it
any more.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
| |
We have changed the API from Datera configshell, so we should be using
a different package name to eliminate confusion.
Still package under configshell pkg name, but issue a warning to switch.
Change code in shell.py to use relative imports instead of package name.
Signed-off-by: Andy Grover <agrover@redhat.com>
|
|
|
|
| |
Signed-off-by: Andy Grover <agrover@redhat.com>
|