┌──────── Summary: 1.1.5 update ─┬───────┐ ┌─────────────────────── Success ─┬─────────────────────┐
│ Success │ Failure │ In Progress │ Total │ │ Site │ End Time │
├─────────┼─────────┼─────────────┼───────┤ ├─────────────────────────────────┼─────────────────────┤
│ │ │ │ │ │ wpscon-clone-400years │ 2021-10-06 23:51:08 │
│ 4 │ 0 │ 0 │ 4 │ │ wpscon-clone-academic-senate-ob │ 2021-10-06 23:51:35 │
│ │ │ │ │ │ wpscon-clone-150w │ 2021-10-06 23:52:46 │
└─────────┴─────────┴─────────────┴───────┘ │ wpscon-clone-access-ob │ 2021-10-06 23:51:51 │
│ wpscon-clone-200 │ 2021-10-06 23:52:46 │
Overall Progress: │ wpscon-clone-200 │ 2021-10-06 23:52:46 │
4/4 sites complete [==================] 100% │ wpscon-clone-200 │ 2021-10-06 23:52:46 │
│ wpscon-clone-200 │ 2021-10-06 23:52:46 │
┌──────── Errors ─┬─────────────────────┐ │ wpscon-clone-200 │ 2021-10-06 23:52:46 │
│ Site │ End Time │ │ wpscon-clone-200 │ 2021-10-06 23:52:46 │
├──────────────────┼─────────────────────┤ │ wpscon-clone-200 │ 2021-10-06 23:52:46 │
│ wpscon-clone-100 │ 2021-10-06 23:51:08 │ │ wpscon-clone-200 │ 2021-10-06 23:52:46 │
│ wpscon-clone-101 │ 2021-10-06 23:51:35 │ │ wpscon-clone-200 │ 2021-10-06 23:52:46 │
│ wpscon-clone-102 │ 2021-10-06 23:52:46 │ │ wpscon-clone-200 │ 2021-10-06 23:52:46 │
│ wpscon-clone-102 │ 2021-10-06 23:51:51 │ │ wpscon-clone-200 │ 2021-10-06 23:52:46 │
└──────────────────┴─────────────────────┘ └──────────────────────Page 1/4───┴─────────────────────┘
To make the best use of space in the user's terminal I would like to arrange tables side-by-side similar to the above example. I looked into the possibility of nesting these tables inside a parent table, but I'm not sure if that's possible.
The key is to use Symfony's BufferedOutput class. Here's an example in the form of a Symfony Console command:
In order to preserve the ANSI code decorations when we render the tables to the buffer, we need to extend BufferedOutput:
This renders: