summaryrefslogtreecommitdiffstats
path: root/ipalib/cli.py
Commit message (Collapse)AuthorAgeFilesLines
* More xmlrpc tweaks: xmlserver.execute() now logs non-public exceptions; ↵Jason Gerard DeRose2009-02-031-9/+19
| | | | xmlclient.forward() now handles socket error; fixed some Python 2.4 problems in lite-xmlrpc2.py
* Further migration toward new xmlrcp code; fixed problem with unicode ↵Jason Gerard DeRose2009-02-031-3/+6
| | | | Fault.faultString; fixed problem where ServerProxy method was not called correctly
* Removed bogus CLI.set_defaults() method that was causing non-required values ↵Jason Gerard DeRose2009-02-031-11/+5
| | | | to get filled in
* Removed depreciated Command.args_to_kw() method; updated CLI to use ↵Jason Gerard DeRose2009-02-031-6/+3
| | | | Command.args_options_2_params() instead
* New Param: fixed metavar bug in cli.pyJason Gerard DeRose2009-01-161-1/+1
|
* Small change in ipalib.cli to check if param is a Password instance instead ↵Jason Gerard DeRose2009-01-141-1/+2
| | | | of calling depreciated ispasswd() method
* New Param: removed more depreciated 'import ipa_types'Jason Gerard DeRose2009-01-141-2/+1
|
* Renamed all references to 'ipa_server' to 'ipaserver'Jason Gerard DeRose2009-01-041-2/+2
|
* Removed depreciated code from config.py; removed corresponding unit testsJason Gerard DeRose2008-12-221-1/+0
|
* Merge branch 'master' of ↵Jason Gerard DeRose2008-12-201-1/+12
|\ | | | | | | git://git.engineering.redhat.com/users/rcritten/freeipa2
| * Set defaults even for optional arguments.Rob Crittenden2008-12-101-0/+8
| |
| * Port plugins to use the new output_for_cli() argument listRob Crittenden2008-12-101-1/+4
| | | | | | | | Fix some errors uncovered by the nosetests
* | Fix show_api commandJakub Hrozek2008-12-171-3/+3
| |
* | Jakub Hrozek's patch to make textui.get_tty_width() actually workJakub Hrozek2008-12-161-1/+11
|/
* Fixed some unicode encoded/decode issues in textui.prompt_password() and ↵Jason Gerard DeRose2008-11-191-4/+31
| | | | textui.prompt()
* Calling 'passwd' command now prompts for password using textui.prompt_password()Jason Gerard DeRose2008-11-181-7/+20
|
* Added textui.prompt_password() method; added logic in cli for dealing with ↵Jason Gerard DeRose2008-11-181-11/+34
| | | | 'password' flag in param.flags
* Added some experimental textui methodsJason Gerard DeRose2008-11-171-5/+35
|
* Command.get_defaults() now returns param.default if param.type is a BoolJason Gerard DeRose2008-11-171-2/+4
|
* Started updated user_* commands to use textuiJason Gerard DeRose2008-11-171-0/+22
|
* Moved plugins command from ipalib.cli to ipalib.plugins.f_miscJason Gerard DeRose2008-11-161-19/+0
|
* Fixed textui.print_keyval for cases when the row is a list instead of a tupleJason Gerard DeRose2008-11-141-2/+2
|
* Added print_plain() and print_paragraph() methods to textui plugin and ↵Jason Gerard DeRose2008-11-141-42/+77
| | | | cleaned up the order of its methods
* Added textui.prompt() method, which CLI.prompt_interactively() usesJason Gerard DeRose2008-11-131-5/+12
|
* Started work on cleaning up how exceptions are caught and sys.exit() is ↵Jason Gerard DeRose2008-11-131-43/+54
| | | | called in ipalib.cli.CLI
* Calling ./ipa with no command now calls Command.help()Jason Gerard DeRose2008-11-121-24/+27
|
* output_for_cli signature is now output_for_cli(textui, result, *args, **options)Jason Gerard DeRose2008-11-121-1/+2
|
* Changed calling signature of output_for_cli(); started work on 'textui' ↵Jason Gerard DeRose2008-11-121-30/+189
| | | | backend plugin
* Move socket errors from the XML-RPC plugin to the clientRob Crittenden2008-11-031-0/+4
|
* Handle exceptions in the command-line instead of in the XMLRPC client pluginRob Crittenden2008-11-031-0/+10
|
* Renamed API.bootstrap_from_options() to bootstrap_with_global_options()Jason Gerard DeRose2008-10-311-7/+4
|
* Reoganized global option functionality to it is easy for any script to use ↵Jason Gerard DeRose2008-10-311-20/+9
| | | | the environment-related global options; lite-xmlrpc.py now uses same global options
* Added ipalib.plugins.f_misc with new 'context' Command; moved 'env' Command ↵Jason Gerard DeRose2008-10-301-18/+0
| | | | from cli to f_misc
* Did some initial work for Context pluginsJason Gerard DeRose2008-10-301-1/+1
|
* Added an example CLI-specific env commandJason Gerard DeRose2008-10-281-0/+16
|
* Added util.configure_logging() function; API.bootstrap() now calls ↵Jason Gerard DeRose2008-10-281-1/+1
| | | | util.configure_logging()
* API.load_plugins() no longer takes dry_run=False kwarg and instead checks in ↵Jason Gerard DeRose2008-10-271-1/+1
| | | | env.mode == 'unit_test' to decide whether to load the plugins; it also only loads ipa_server.plugins in env.in_server is True
* More CLI cleanup, got all basics working againJason Gerard DeRose2008-10-271-70/+70
|
* More docstrings, functionality, and unit tests for improved CLI classJason Gerard DeRose2008-10-271-80/+166
|
* Implemented basic CLI.bootstrap(); added corresponding unit testsJason Gerard DeRose2008-10-271-22/+13
|
* Started cleanup work on CLI class, added unit tests for CLI.parse_globals()Jason Gerard DeRose2008-10-271-1/+2
|
* Started cleanup work on CLI class, added unit tests for CLI.parse_globals()Jason Gerard DeRose2008-10-271-48/+69
|
* Fix ipa command running in server_context=TrueRob Crittenden2008-10-231-1/+17
| | | | | | Make the LDAP host and port environment variables More changes so that commands have a shell return value lite-xmlrpc no longer hardcodes the kerberos credentials cache location
* Return a value to the shell that called ipaRob Crittenden2008-10-221-2/+6
|
* Gracefully handle keyboard interrupts (^C)Rob Crittenden2008-10-211-1/+4
|
* Make boolean options work like standard OptionParser booleansRob Crittenden2008-10-211-1/+6
|
* Reworked 'plugins' command to use output_for_cli()Jason Gerard DeRose2008-10-201-8/+11
|
* Removed generic Command.output_for_cli() method; CLI.run_interactive() now ↵Jason Gerard DeRose2008-10-171-1/+3
| | | | only calls output_for_cli() if it has been implemented
* Reworking Environment, moved it to config.pyMartin Nagy2008-10-171-12/+13
|
* Started roughing out user_add() using api.Backend.ldap; added ↵Jason Gerard DeRose2008-10-141-1/+1
| | | | Command.output_for_cli() to take care of formatting print output