Commit 33b3595a authored by Stavros Sachtouris's avatar Stavros Sachtouris
Browse files

Plant a _cmd_tree idea in cli.history_recall

If an interface needs a recall, it should provide a full cmd_tree
parent 304c90b5
......@@ -75,11 +75,21 @@ class history_clean(_init_history):
super(self.__class__, self).main()
class history_recall(_init_history):
"""Re-call a previously called command"""
_cmd_tree = None
def __init__(self, arguments={}, cmd_tree=None):
super(self.__class__, self).__init__(arguments)
self._cmd_tree = cmd_tree
def main(self, commandid):
super(self.__class__, self).main()
r = self.history.retrieve(commandid)
if self._cmd_tree:
raise NotImplemented('Sorry, recall is not implemented yet')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment