Overview

Request 699499 accepted

- fix previous commit
- Update to 0.9.12:
- Bug Fixes
- Fixed a bug in how redirection and piping worked inside
py or pyscript commands
- Fixed bug in async_alert where it didn't account for
prompts that contained newline characters
- Fixed path completion case when CWD is just a slash.
Relative path matches were incorrectly prepended with
a slash.
- Enhancements
- Added ability to include command name placeholders in
the message printed when trying to run a disabled
command.
- Added instance attributes to customize error messages
without having to override methods. Theses messages can
also be colored.
- The with_argparser decorators now add the Statement
object created when parsing the command line to the
argparse.Namespace object they pass to the do_*
methods. It is stored in an attribute called
__statement__.
- This can be useful if a command function needs to know
the command line for things like logging.
- Added a -t option to the load command for automatically
generating a transcript based on a script file
- When in a pyscript, the stdout and stderr streams of
shell commands and processes being piped to are now
captured and included in the CommandResult structure.
- Potentially breaking changes
- The following commands now write to stderr instead of
stdout when printing an error. This will make catching
errors easier in pyscript.
- Removed *** from beginning of error messages printed by
do_help() and default()
- Significantly refactored cmd.Cmd class so that all
class attributes got converted to instance attributes,
also: self.pipe_proc is now called
self.cur_pipe_proc_reader and is a ProcReader class.
- Shell commands and commands being piped to while in
a pyscript will function as if their output is going to
a pipe and not a tty. This was necessary to be able to
capture their output.
- fix build for SLE12 and older

Loading...
Request History
Matej Cepl's avatar

mcepl created request

- fix previous commit
- Update to 0.9.12:
- Bug Fixes
- Fixed a bug in how redirection and piping worked inside
py or pyscript commands
- Fixed bug in async_alert where it didn't account for
prompts that contained newline characters
- Fixed path completion case when CWD is just a slash.
Relative path matches were incorrectly prepended with
a slash.
- Enhancements
- Added ability to include command name placeholders in
the message printed when trying to run a disabled
command.
- Added instance attributes to customize error messages
without having to override methods. Theses messages can
also be colored.
- The with_argparser decorators now add the Statement
object created when parsing the command line to the
argparse.Namespace object they pass to the do_*
methods. It is stored in an attribute called
__statement__.
- This can be useful if a command function needs to know
the command line for things like logging.
- Added a -t option to the load command for automatically
generating a transcript based on a script file
- When in a pyscript, the stdout and stderr streams of
shell commands and processes being piped to are now
captured and included in the CommandResult structure.
- Potentially breaking changes
- The following commands now write to stderr instead of
stdout when printing an error. This will make catching
errors easier in pyscript.
- Removed *** from beginning of error messages printed by
do_help() and default()
- Significantly refactored cmd.Cmd class so that all
class attributes got converted to instance attributes,
also: self.pipe_proc is now called
self.cur_pipe_proc_reader and is a ProcReader class.
- Shell commands and commands being piped to while in
a pyscript will function as if their output is going to
a pipe and not a tty. This was necessary to be able to
capture their output.
- fix build for SLE12 and older


Saul Goodman's avatar

licensedigger accepted review

ok


Factory Auto's avatar

factory-auto added opensuse-review-team as a reviewer

Please review sources


Factory Auto's avatar

factory-auto accepted review

Check script succeeded


Staging Bot's avatar

staging-bot set openSUSE:Factory:Staging:H as a staging project

Being evaluated by staging project "openSUSE:Factory:Staging:H"


Staging Bot's avatar

staging-bot accepted review

Picked openSUSE:Factory:Staging:H


Ismail Dönmez's avatar

namtrac accepted review


Dominique Leuenberger's avatar

dimstar_suse accepted review

ready to accept


Dominique Leuenberger's avatar

dimstar_suse approved review

ready to accept


Dominique Leuenberger's avatar

dimstar_suse accepted request

Accept to openSUSE:Factory

openSUSE Build Service is sponsored by