Expands the macro and returns the list of commands to actually execute to the caller depending on the presence of the --explain argument.
(self, id, cmd, args)
| 33 | pass |
| 34 | |
| 35 | def run(self, id, cmd, args): |
| 36 | """Expands the macro and returns the list of commands to actually execute to the caller |
| 37 | depending on the presence of the --explain argument. |
| 38 | """ |
| 39 | cmds = self.expand(id, cmd, args) |
| 40 | if cmd.explain: |
| 41 | if cmds is None: |
| 42 | return None |
| 43 | for item in cmds: |
| 44 | stdoutln(item) |
| 45 | return [] |
| 46 | return cmds |
| 47 | |
| 48 | |
| 49 | class Usermod(Macro): |
no test coverage detected