Attach the stdin/stdout/stderr of the CLI to the STDIN/STDOUT/STDERR of a running task.
(self, argv)
| 69 | } |
| 70 | |
| 71 | def attach(self, argv): |
| 72 | """ |
| 73 | Attach the stdin/stdout/stderr of the CLI to the |
| 74 | STDIN/STDOUT/STDERR of a running task. |
| 75 | """ |
| 76 | try: |
| 77 | master = self.config.master() |
| 78 | except Exception as exception: |
| 79 | raise CLIException("Unable to get leading master address: {error}" |
| 80 | .format(error=exception)) |
| 81 | |
| 82 | task_io = TaskIO(master, argv["<task-id>"]) |
| 83 | return task_io.attach(argv["--no-stdin"]) |
| 84 | |
| 85 | |
| 86 | def exec(self, argv): |
nothing calls this directly
no test coverage detected