>>> c.clear()
>>> print [repr(cm) for cm in c]
[]
+
+ YAMLize a curve argument.
+
+ >>> from .curve import Curve
+ >>> c.append(CommandMessage('curve info', {'curve': Curve(path=None)}))
+ >>> print yaml.dump(c)
+ !!python/object/new:hooke.command_stack.CommandStack
+ listitems:
+ - !!python/object:hooke.engine.CommandMessage
+ arguments:
+ curve: !!python/object:hooke.curve.Curve
+ command_stack: !!python/object:hooke.command_stack.CommandStack {}
+ data: null
+ driver: null
+ info: {}
+ name: null
+ path: null
+ command: curve info
+ <BLANKLINE>
"""
def execute(self, hooke, filter=None, stack=False):
"""Execute a stack of commands.