| 1 | 2012-09-03 Thomas Vander Stichele <thomas at apestaart dot org> |
|---|
| 2 | |
|---|
| 3 | * command.py: |
|---|
| 4 | Add stubs for info and warning. |
|---|
| 5 | * tcommand.py: |
|---|
| 6 | Debug exceptions and failures. |
|---|
| 7 | |
|---|
| 8 | 2012-09-03 Thomas Vander Stichele <thomas at apestaart dot org> |
|---|
| 9 | |
|---|
| 10 | * command.py: |
|---|
| 11 | Add debugging on return values. |
|---|
| 12 | |
|---|
| 13 | 2012-09-03 Thomas Vander Stichele <thomas at apestaart dot org> |
|---|
| 14 | |
|---|
| 15 | * command.py: |
|---|
| 16 | Add debugging when going into subcommand methods. |
|---|
| 17 | Show which python class implements a command. |
|---|
| 18 | |
|---|
| 19 | 2012-09-02 Thomas Vander Stichele <thomas at apestaart dot org> |
|---|
| 20 | |
|---|
| 21 | * manholecmd.py: |
|---|
| 22 | Add an errback command, to show bad handling of newlines not |
|---|
| 23 | returning to carriage. |
|---|
| 24 | |
|---|
| 25 | 2012-05-06 Thomas Vander Stichele <thomas at apestaart dot org> |
|---|
| 26 | |
|---|
| 27 | * command.py: |
|---|
| 28 | Provide a real stderr by default. |
|---|
| 29 | |
|---|
| 30 | 2012-05-05 Thomas Vander Stichele <thomas at apestaart dot org> |
|---|
| 31 | |
|---|
| 32 | * command.py: |
|---|
| 33 | For commands without subcommands, fix usage and %command. |
|---|
| 34 | |
|---|
| 35 | 2011-08-29 Thomas Vander Stichele <thomas at apestaart dot org> |
|---|
| 36 | |
|---|
| 37 | * command.py: |
|---|
| 38 | For commands with subcommands, copy over summary if description |
|---|
| 39 | is missing. |
|---|
| 40 | |
|---|
| 41 | 2011-08-23 Thomas Vander Stichele <thomas at apestaart dot org> |
|---|
| 42 | |
|---|
| 43 | * command.py: |
|---|
| 44 | Without a description, format_description never gets called, |
|---|
| 45 | so we don't see subcommands. Assert. |
|---|
| 46 | |
|---|
| 47 | 2011-08-05 Thomas Vander Stichele <thomas at apestaart dot org> |
|---|
| 48 | |
|---|
| 49 | * command.py: |
|---|
| 50 | * manholecmd.py: |
|---|
| 51 | * test_command.py: |
|---|
| 52 | PEP8 cleanups. |
|---|
| 53 | |
|---|
| 54 | 2011-08-05 Thomas Vander Stichele <thomas at apestaart dot org> |
|---|
| 55 | |
|---|
| 56 | * command.py: |
|---|
| 57 | Since we use properties (introduced in python 2.2), make |
|---|
| 58 | Command a new-style class. |
|---|
| 59 | |
|---|
| 60 | 2011-08-05 Thomas Vander Stichele <thomas at apestaart dot org> |
|---|
| 61 | |
|---|
| 62 | * command.py: |
|---|
| 63 | * test_command.py: |
|---|
| 64 | Make automatic naming work for new-style classes. |
|---|
| 65 | |
|---|
| 66 | 2011-08-05 Thomas Vander Stichele <thomas at apestaart dot org> |
|---|
| 67 | |
|---|
| 68 | * manholecmd.py: |
|---|
| 69 | Remove unused modules. |
|---|
| 70 | |
|---|
| 71 | 2011-05-30 Thomas Vander Stichele <thomas at apestaart dot org> |
|---|
| 72 | |
|---|
| 73 | * test_command.py: |
|---|
| 74 | Usage goes to stdout now. |
|---|
| 75 | |
|---|
| 76 | 2011-04-16 Thomas Vander Stichele <thomas at apestaart dot org> |
|---|
| 77 | |
|---|
| 78 | * command.py: |
|---|
| 79 | Docs, cleanups. |
|---|
| 80 | Actually return the result of the Command.parse invocation |
|---|
| 81 | in the do_* handler. |
|---|
| 82 | * manholecmd.py: |
|---|
| 83 | Handle and wait for deferreds from the do_* handler in the |
|---|
| 84 | interpreter before showing the next command prompt. |
|---|
| 85 | Fix the example you get by running it, and add a defer command |
|---|
| 86 | to show the deferred handling. |
|---|
| 87 | |
|---|
| 88 | 2011-04-16 Thomas Vander Stichele <thomas at apestaart dot org> |
|---|
| 89 | |
|---|
| 90 | * manholecmd.py: |
|---|
| 91 | Factor out terminal resetting methods into a Stdio class. |
|---|
| 92 | Fix up example again. |
|---|
| 93 | |
|---|
| 94 | 2011-04-03 Thomas Vander Stichele <thomas at apestaart dot org> |
|---|
| 95 | |
|---|
| 96 | * command.py: |
|---|
| 97 | Set cmdClass.command properly. |
|---|
| 98 | * manholecmd.py: |
|---|
| 99 | Make sure we set stdout on the root command, so it trickles down. |
|---|
| 100 | |
|---|
| 101 | 2011-04-03 Thomas Vander Stichele <thomas at apestaart dot org> |
|---|
| 102 | |
|---|
| 103 | * command.py: |
|---|
| 104 | Fixed wrong parse delegation. |
|---|
| 105 | Make stderr a property too for now. |
|---|
| 106 | Don't set too many stdout/stderr. |
|---|
| 107 | |
|---|
| 108 | 2011-04-03 Thomas Vander Stichele <thomas at apestaart dot org> |
|---|
| 109 | |
|---|
| 110 | * command.py: |
|---|
| 111 | Don't set stdout/stderr by default. |
|---|
| 112 | Make stdout a property; have commands delegate upwards if not set. |
|---|
| 113 | Encode utf-8 commands for output. |
|---|
| 114 | * manholecmd.py: |
|---|
| 115 | Make sure we don't get unicode. |
|---|
| 116 | Don't reset and clear the screen when we stop. |
|---|
| 117 | System out to stty sane for now. |
|---|
| 118 | |
|---|
| 119 | 2011-04-02 Thomas Vander Stichele <thomas at apestaart dot org> |
|---|
| 120 | |
|---|
| 121 | * manholecmd.py: |
|---|
| 122 | Use our own ServerProtocol subclass that does not reset terminal |
|---|
| 123 | when Ctrl-D is pressed. |
|---|
| 124 | |
|---|
| 125 | 2011-04-02 Thomas Vander Stichele <thomas at apestaart dot org> |
|---|
| 126 | |
|---|
| 127 | * command.py: |
|---|
| 128 | Fix more wrong stdout redirection. |
|---|
| 129 | |
|---|
| 130 | 2011-04-02 Thomas Vander Stichele <thomas at apestaart dot org> |
|---|
| 131 | |
|---|
| 132 | * command.py: |
|---|
| 133 | Add commandToCmdClass as the preferred interface. |
|---|
| 134 | |
|---|
| 135 | 2011-04-02 Thomas Vander Stichele <thomas at apestaart dot org> |
|---|
| 136 | |
|---|
| 137 | * manholecmd.py (added): |
|---|
| 138 | A way of using Twisted's manhole to create a REPL using |
|---|
| 139 | the cmd.Cmd class and integrating with Twisted's reactor. |
|---|
| 140 | |
|---|
| 141 | 2011-01-09 Thomas Vander Stichele <thomas at apestaart dot org> |
|---|
| 142 | |
|---|
| 143 | * command.py: |
|---|
| 144 | Input from the command loop is coming from the terminal. |
|---|
| 145 | Most likely it is utf-8-encoded, so decode it to unicode before |
|---|
| 146 | invoking do. |
|---|
| 147 | |
|---|
| 148 | 2010-11-29 Thomas Vander Stichele <thomas at apestaart dot org> |
|---|
| 149 | |
|---|
| 150 | * command.py: |
|---|
| 151 | * help2man.py: |
|---|
| 152 | pep-8 and pychecker fixes. |
|---|
| 153 | |
|---|
| 154 | 2009-11-02 Thomas Vander Stichele <thomas at apestaart dot org> |
|---|
| 155 | |
|---|
| 156 | * command.py: |
|---|
| 157 | Fix pep8 error. |
|---|
| 158 | |
|---|
| 159 | 2009-11-01 Thomas Vander Stichele <thomas at apestaart dot org> |
|---|
| 160 | |
|---|
| 161 | * command.py: |
|---|
| 162 | Allow natural formatting of a list, identified by a line that |
|---|
| 163 | starts with a space then a dash. |
|---|
| 164 | |
|---|
| 165 | 2009-11-01 Thomas Vander Stichele <thomas at apestaart dot org> |
|---|
| 166 | |
|---|
| 167 | * command.py: |
|---|
| 168 | Add aliases to the interpreter as well. |
|---|
| 169 | |
|---|
| 170 | 2009-11-01 Thomas Vander Stichele <thomas at apestaart dot org> |
|---|
| 171 | |
|---|
| 172 | * command.py: |
|---|
| 173 | Allow a command with subcommands to implement a specific do() |
|---|
| 174 | as well if no arguments are given. |
|---|
| 175 | |
|---|
| 176 | Add a method to give you a cmd.Cmd-style object that can be used |
|---|
| 177 | to implement a shell main loop. |
|---|
| 178 | |
|---|
| 179 | 2009-10-17 Thomas Vander Stichele <thomas at apestaart dot org> |
|---|
| 180 | |
|---|
| 181 | * command.py: |
|---|
| 182 | Add getFullName method, to give you the full command name (with |
|---|
| 183 | parent commands). |
|---|
| 184 | Add file parameters to usage and help output, so we can redirect |
|---|
| 185 | somewhere else. Also add a width parameter to control the width |
|---|
| 186 | of that output. |
|---|
| 187 | |
|---|
| 188 | 2009-06-27 Thomas Vander Stichele <thomas at apestaart dot org> |
|---|
| 189 | |
|---|
| 190 | * command.py: |
|---|
| 191 | BaseException.message existed and is deprecated, so rename. |
|---|
| 192 | Also output the output in the exception. |
|---|
| 193 | |
|---|
| 194 | 2009-06-27 Thomas Vander Stichele <thomas at apestaart dot org> |
|---|
| 195 | |
|---|
| 196 | * command.py: |
|---|
| 197 | Add CommandExited and subclasses, so we can have a |
|---|
| 198 | common subclass for command classes that start their |
|---|
| 199 | do() method with the same code to check arguments/conditions, |
|---|
| 200 | then raise if they don't. |
|---|
| 201 | |
|---|
| 202 | 2009-05-23 Thomas Vander Stichele <thomas at apestaart dot org> |
|---|
| 203 | |
|---|
| 204 | * command.py: |
|---|
| 205 | Fix reference in docstring. |
|---|
| 206 | |
|---|
| 207 | 2008-08-30 Thomas Vander Stichele <thomas at apestaart dot org> |
|---|
| 208 | |
|---|
| 209 | * command.py: |
|---|
| 210 | Change usage to not include the own name. This allows us |
|---|
| 211 | to do the right default thing for commands with subcommands. |
|---|
| 212 | |
|---|
| 213 | 2008-08-03 Thomas Vander Stichele <thomas at apestaart dot org> |
|---|
| 214 | |
|---|
| 215 | * test_command.py: |
|---|
| 216 | Fix test. |
|---|
| 217 | |
|---|
| 218 | 2008-08-01 Thomas Vander Stichele <thomas at apestaart dot org> |
|---|
| 219 | |
|---|
| 220 | patch by: Johan Dahlin |
|---|
| 221 | |
|---|
| 222 | * command.py: |
|---|
| 223 | * test_command.py: |
|---|
| 224 | Clean up with pep8.py |
|---|
| 225 | |
|---|
| 226 | 2008-07-31 Thomas Vander Stichele <thomas at apestaart dot org> |
|---|
| 227 | |
|---|
| 228 | * command.py: |
|---|
| 229 | Allowing returning None, to indicate nothing was done, |
|---|
| 230 | so help can properly fall through. |
|---|
| 231 | |
|---|
| 232 | 2008-05-15 Thomas Vander Stichele <thomas at apestaart dot org> |
|---|
| 233 | |
|---|
| 234 | * test_command.py: |
|---|
| 235 | Fix test after we made exit stop raising SystemExit |
|---|
| 236 | |
|---|
| 237 | 2008-05-15 Thomas Vander Stichele <thomas at apestaart dot org> |
|---|
| 238 | |
|---|
| 239 | * command.py: |
|---|
| 240 | add OptionParser.{help,usage}_printed so that Command subclasses |
|---|
| 241 | that override parse can exit properly as soon as help or usage |
|---|
| 242 | is printed. |
|---|
| 243 | |
|---|
| 244 | 2008-05-12 Thomas Vander Stichele <thomas at apestaart dot org> |
|---|
| 245 | |
|---|
| 246 | * command.py: |
|---|
| 247 | Override exit() so that we don't actually exit when used in |
|---|
| 248 | an interactive shell. |
|---|
| 249 | Add API docs. |
|---|
| 250 | |
|---|
| 251 | 2007-07-19 Thomas Vander Stichele <thomas at apestaart dot org> |
|---|
| 252 | |
|---|
| 253 | * test_command.py: |
|---|
| 254 | Seems on F7 that optparse outputs a capital for the first letter. |
|---|
| 255 | |
|---|
| 256 | 2007-06-24 Thomas Vander Stichele <thomas at apestaart dot org> |
|---|
| 257 | |
|---|
| 258 | * test_command.py: |
|---|
| 259 | Add tests from Savon. |
|---|
| 260 | |
|---|
| 261 | 2007-06-24 Thomas Vander Stichele <thomas at apestaart dot org> |
|---|
| 262 | |
|---|
| 263 | * command.py: |
|---|
| 264 | Add help command. Fixes #240. |
|---|