mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 16:34:47 +01:00
Actually document parameters of on_postcommand
Since it's on the website and all
This commit is contained in:
parent
040c652358
commit
b2631904c2
1 changed files with 7 additions and 0 deletions
|
@ -35,6 +35,13 @@ events.doc('on_postcommand', """
|
||||||
on_postcommand(cmd: str, rtn: int, out: str or None, ts: list) -> None
|
on_postcommand(cmd: str, rtn: int, out: str or None, ts: list) -> None
|
||||||
|
|
||||||
Fires just after a command is executed. The arguments are the same as history.
|
Fires just after a command is executed. The arguments are the same as history.
|
||||||
|
|
||||||
|
Parameters:
|
||||||
|
|
||||||
|
* ``cmd``: The command that was executed (after transformation)
|
||||||
|
* ``rtn``: The result of the command executed (``0`` for success)
|
||||||
|
* ``out``: If xonsh stores command output, this is the output
|
||||||
|
* ``ts``: Timestamps, in the order of ``[starting, ending]``
|
||||||
""")
|
""")
|
||||||
|
|
||||||
events.doc('on_pre_prompt', """
|
events.doc('on_pre_prompt', """
|
||||||
|
|
Loading…
Add table
Reference in a new issue