D | _dry_run.py | 1 # -*- coding: UTF-8 -*- 3 Basic support to use a --dry-run mode w/ invoke tasks. 5 .. code-block:: 14 # -- DRY-RUN MODE: Only echos commands. 15 ctx.run("rm -rf {}".format(path)) 21 PREFIX = "DRY-RUN: " 35 def run(self, command, **kwargs): member in DryRunContext 44 self.run(command2, **kwargs)
|