Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | add before and after hooks | Doug Hellmann | 2017-06-30 | 1 | -1/+7 |
| | | | | | | | | Add hooks that are called before and after the take_action() method of the command. Change-Id: Id6527dfe0946c0ab169fc165b84d40f3ff95e08c Signed-off-by: Doug Hellmann <doug@doughellmann.com> | ||||
* | add hook for get_epilog | Doug Hellmann | 2017-06-30 | 1 | -0/+3 |
| | | | | | Change-Id: If3fe077522c156472a0213e8768470e0505c189d Signed-off-by: Doug Hellmann <doug@doughellmann.com> | ||||
* | add hook for manipulating the argument parser | Doug Hellmann | 2017-06-30 | 2 | -0/+45 |
| | | | | | | | | | | Update Commands to load a separate set of extensions to be used as "hooks," triggered at different points in the processing of the command. Start with a hook that is given access to the argument parser for the command so it can modify it. Change-Id: I0785548fd36a61cda616921a4a21be3f67701300 Signed-off-by: Doug Hellmann <doug@doughellmann.com> | ||||
* | Fix cliff URLs in doc and demoapp | Masayuki Igawa | 2016-07-28 | 1 | -2/+2 |
| | | | | | | This commit fixes cliff URLs in the documents and demoapp. Change-Id: I5a190841d1126119eddacedd02667efd52709330 | ||||
* | Set demo app up with deferred help | Doug Hellmann | 2015-07-24 | 1 | -0/+1 |
| | | | | Change-Id: Ia48866e17d5823a2ccc85172c717581316ad05a7 | ||||
* | Fix logging config in demo app | Doug Hellmann | 2015-07-09 | 1 | -7/+4 |
| | | | | | | | The demo application was creating a new logger instance instead of using the one built into the base class. Change-Id: I980b180132cf20f7d2420e8f61e341760674aac0 | ||||
* | Update pyparsing dependency to 2.0.1 | Doug Hellmann | 2013-09-23 | 1 | -1/+1 |
| | | | | | | | Go ahead and require the version of pyparsing that supports python 2 and 3. Change-Id: Icdeb7c4a4aeaab9fcc4a44b091a068f91553adf6 | ||||
* | remove use of distribute in demo app | Doug Hellmann | 2013-08-12 | 2 | -490/+4 |
| | | | | Change-Id: I3bbd270a2a0ed6eee6eb12a326f86aaad84f2aad | ||||
* | Fix default encoding issue with python 2.6 | Doug Hellmann | 2013-08-12 | 2 | -0/+24 |
| | | | | | | | | | | | | | | This change addresses issue #38: "fix unicode handling issues". The issue was originally reported against neutron client (https://bugs.launchpad.net/python-neutronclient/+bug/1189112) but was tracked down to the fact that python 2.6 does not set the default encoding for sys.stdout properly. A change to python 2.7 fixes the problem there and later (http://hg.python.org/cpython/rev/e60ef17561dc/), but since cliff supports python 2.6 it needs to handle the case explicitly. Change-Id: Id06507d78c7c82b25f39366ea4a6dfa4ef3a3a97 | ||||
* | Fix typo. | qneill | 2013-01-03 | 1 | -1/+1 |
| | |||||
* | Doc updates for API changes.1.0 | Doug Hellmann | 2012-06-20 | 1 | -2/+2 |
| | | | | | | | Clean up docstrings. Bump version to 1.0. Change-Id: I1047c637ffed4ffac8bffbdaa1bddc56895716d9 | ||||
* | Refactor DisplayBase.run() to make it easier to override separate parts in ↵ | Doug Hellmann | 2012-06-01 | 2 | -2/+2 |
| | | | | | | subclasses. Rename get_data() to take_action() so subclasses that do something other than query for values have a clear place to override. | ||||
* | declare a couple of commands that use builtin command names but use multiple ↵ | Doug Hellmann | 2012-05-14 | 1 | -0/+2 |
| | | | | words | ||||
* | pass more details to initialize_app so subclasses can decide what sort of ↵ | Doug Hellmann | 2012-05-10 | 1 | -1/+1 |
| | | | | initialization to do | ||||
* | simplify packaging file for demo app | Doug Hellmann | 2012-04-28 | 1 | -101/+0 |
| | |||||
* | first pass at interactive app | Doug Hellmann | 2012-04-28 | 1 | -0/+3 |
| | |||||
* | add longer docstring to show how it is printed by help | Doug Hellmann | 2012-04-28 | 1 | -2/+4 |
| | |||||
* | add ShowOne base class for commands that need to show properties of an ↵ | Doug Hellmann | 2012-04-27 | 2 | -0/+32 |
| | | | | | | | individual object make the table formatter work as a single object formatter update the docs for the new features | ||||
* | remove example that I was using as a syntax reminder | Doug Hellmann | 2012-04-25 | 1 | -4/+0 |
| | |||||
* | Added a bit more to the README. | Duncan McGreggor | 2012-04-23 | 1 | -9/+23 |
| | |||||
* | flesh out instructions for using the demo app | Doug Hellmann | 2012-04-23 | 1 | -10/+25 |
| | |||||
* | Added a README for the demo app. | Duncan McGreggor | 2012-04-23 | 1 | -0/+35 |
| | |||||
* | Added download url to both setup.py files and updated the demo setup.py with | Duncan McGreggor | 2012-04-23 | 1 | -1/+2 |
| | | | | the new url. | ||||
* | Added missing distribute setup file. | Duncan McGreggor | 2012-04-23 | 1 | -0/+477 |
| | |||||
* | start creating a subclass of command for producing a list of output in ↵ | Doug Hellmann | 2012-04-22 | 2 | -0/+17 |
| | | | | different formats, using prettytable as an example formatter | ||||
* | Pass the I/O streams into the app | Doug Hellmann | 2012-04-22 | 1 | -1/+1 |
| | |||||
* | add some error handling to App | Doug Hellmann | 2012-04-22 | 3 | -3/+16 |
| | |||||
* | tweak App api to make it easier to override and perform global actions ↵ | Doug Hellmann | 2012-04-22 | 2 | -1/+12 |
| | | | | before and after a command runs | ||||
* | use logging for controlling console output verbosity | Doug Hellmann | 2012-04-21 | 1 | -1/+5 |
| | |||||
* | clean up argv handling | Doug Hellmann | 2012-04-20 | 1 | -2/+6 |
| | |||||
* | replace default --help processor with one that includes the list of ↵ | Doug Hellmann | 2012-04-20 | 1 | -0/+1 |
| | | | | subcommands available | ||||
* | Sample program with command plugins | Doug Hellmann | 2012-04-20 | 4 | -0/+200 |