summaryrefslogtreecommitdiff
path: root/scripts/targetcli
Commit message (Collapse)AuthorAgeFilesLines
* Add --version and --help support to targetcliadd-usageAndy Grover2014-09-231-0/+21
| | | | | | | I don't envision targetcli taking a lot of cmdline options, so just implement by looking at sys.argv[1] instead of using getopt or ArgParse. Signed-off-by: Andy Grover <agrover@redhat.com>
* Change targetcli for configshell exception changeAndy Grover2014-03-031-3/+14
| | | | | | | | | | | | If run_cmdline raises an exception, return 1 as exit code and print exception text to stderr. Keep running shell.run_interactive until shell._exit is set, logging error messages. Overriding execute_command in UINode no longer needed, remove. Signed-off-by: Andy Grover <agrover@redhat.com>
* Make except clause compatible with Python 3 in scripts/targetcliChristophe Vu-Brugier2013-10-121-1/+1
| | | | Signed-off-by: Christophe Vu-Brugier <cvubrugier@yahoo.fr>
* targetcli: Change copyright to Apache License 2.0Nicholas Bellinger2013-07-231-13/+11
| | | | | | | | | | This patch converts rtslib code copyright from AGPL to the permissive Apache License 2.0. It also update copyright owner to Datera, Inc. Signed-off-by: Nicholas Bellinger <nab@risingtidesystems.com> Signed-off-by: Andy Grover <agrover@redhat.com>
* Catch module load errorsAndy Grover2013-06-181-1/+4
| | | | | | | | | | If targetcli is not run for the first time not as root, refresh() will fail because it can't load modules. This returns a nicer error message in that case. See https://bugzilla.redhat.com/show_bug.cgi?id=973852 Signed-off-by: Andy Grover <agrover@redhat.com>
* model alias follow-upAndy Grover2013-02-071-0/+1
| | | | | | | | | | | | | | | Don't raise an exception if we can't set emulate_model_alias, just print a diagnostic. Rename ui_set_model_alias to setup_model_alias. 'setup' seems a little more accurate since we don't always set model alias, it depends on the preference. Rename export_backstore_as_model pref to export_backstore_name_as_model. Add a configshell default for export_backstore_name_as_model, set to True. Signed-off-by: Andy Grover <agrover@redhat.com>
* Don't try to save config if not rootAndy Grover2012-07-251-1/+1
| | | | | | It won't work and will print an ugly message. Signed-off-by: Andy Grover <agrover@redhat.com>
* Changed default auto_cd_after_create to FalseJerome Martin2012-05-311-1/+1
| | | | | | * Do not enter a new object context right after creating it by default. Signed-off-by: Andy Grover <agrover@redhat.com>
* Made startup message less verbose, display versionAndy Grover2012-05-311-9/+7
| | | | | | | | | | | | | | | [original comments from 5bcef69] * Now displaying targetcli / rtslib version on startup * Retained only copyright notice. [end] fb changes: - only display targetcli version, we don't have rtslib version in code - move later to only display if entering shell - remove extraneous copyright verbiage - add "and others" to be explicit about our derived-work status Signed-off-by: Andy Grover <agrover@redhat.com>
* Add auto_save_on_exit preferenceAndy Grover2012-02-131-0/+5
| | | | | | Defaulted to true. Signed-off-by: Andy Grover <agrover@redhat.com>
* Enable execution of cmdline parameters in targetcliAndy Grover2011-12-061-9/+14
| | | | | | | Check the commandline and only enter interactive shell if no additional parameters were given. If parameters were given, execute them and exit. Signed-off-by: Andy Grover <agrover@redhat.com>
* Remove backstore_legacy, dedup_so_name(), and legacy_hba_viewAndy Grover2011-12-061-1/+0
| | | | | | Don't need to worry about legacy backstores. Signed-off-by: Andy Grover <agrover@redhat.com>
* Remove ads from cli welcome msg. Mention help is available.Andy Grover2011-11-281-2/+2
| | | | Signed-off-by: Andy Grover <agrover@redhat.com>
* Changed name to targetcli at community request.Jerome Martin2011-09-201-0/+80