Revision 439826ec kamaki/cli/commands/history_cli.py
b/kamaki/cli/commands/history_cli.py | ||
---|---|---|
80 | 80 |
class history_show(_init_history): |
81 | 81 |
"""Show intersession command history |
82 | 82 |
--- |
83 |
* With no parameters : pick all commands in history records
|
|
84 |
* With:
|
|
85 |
1. <order-id> : pick the <order-id>th command
|
|
86 |
2. <order-id-1>-<order-id-2> : pick all commands ordered in the range
|
|
87 |
[<order-id-1> - <order-id-2>]
|
|
88 |
- the above can be mixed and repeated freely, separated by spaces
|
|
89 |
e.g. pick 2 4-7 -3
|
|
90 |
- Use negative integers to count from the end of the list, e.g.:
|
|
91 |
-2 means : the command before the last one
|
|
92 |
-2-5 means : last 2 commands + the first 5
|
|
93 |
-5--2 means : the last 5 commands except the last 2
|
|
83 |
- With no parameters : pick all commands in history records
|
|
84 |
- With:
|
|
85 |
. 1. <order-id> : pick the <order-id>th command
|
|
86 |
. 2. <order-id-1>-<order-id-2> : pick all commands ordered in the range
|
|
87 |
. [<order-id-1> - <order-id-2>]
|
|
88 |
. - the above can be mixed and repeated freely, separated by spaces
|
|
89 |
. e.g. pick 2 4-7 -3
|
|
90 |
. - Use negative integers to count from the end of the list, e.g.:
|
|
91 |
. -2 means : the command before the last one
|
|
92 |
. -2-5 means : last 2 commands + the first 5
|
|
93 |
. -5--2 means : the last 5 commands except the last 2
|
|
94 | 94 |
""" |
95 | 95 |
|
96 | 96 |
arguments = dict( |
... | ... | |
133 | 133 |
class history_run(_init_history): |
134 | 134 |
"""Run previously executed command(s) |
135 | 135 |
Use with: |
136 |
1. <order-id> : pick the <order-id>th command
|
|
137 |
2. <order-id-1>-<order-id-2> : pick all commands ordered in the range
|
|
138 |
[<order-id-1> - <order-id-2>]
|
|
139 |
- Use negative integers to count from the end of the list, e.g.:
|
|
140 |
-2 means : the command before the last one
|
|
141 |
-2-5 means : last 2 commands + the first 5
|
|
142 |
-5--2 mean
|
|
143 |
- to find order ids for commands try /history show.
|
|
136 |
. 1. <order-id> : pick the <order-id>th command
|
|
137 |
. 2. <order-id-1>-<order-id-2> : pick all commands ordered in the range
|
|
138 |
. [<order-id-1> - <order-id-2>]
|
|
139 |
. - Use negative integers to count from the end of the list, e.g.:
|
|
140 |
. -2 means : the command before the last one
|
|
141 |
. -2-5 means : last 2 commands + the first 5
|
|
142 |
. -5--2 mean
|
|
143 |
. - to find order ids for commands try /history show.
|
|
144 | 144 |
""" |
145 | 145 |
|
146 | 146 |
_cmd_tree = None |
Also available in: Unified diff