def run_elective(self, cmd, *args, **kwargs):
if self._commit:<EOL><INDENT>return self.run(cmd, *args, **kwargs)<EOL><DEDENT>else:<EOL><INDENT>notify.warning("<STR_LIT>".format(cmd))<EOL>kwargs = kwargs.copy()<EOL>kwargs['<STR_LIT>'] = False<EOL>return self.run('<STR_LIT:true>', *args, **kwargs)<EOL><DEDENT>
Run a command, or just echo it, depending on `commit`.