Files
nomad/command
Mahmood Ali ff52961918 cli: show lifecycle info in alloc status
Display task lifecycle info in `nomad alloc status <alloc_id>` output.
I chose to embed it in the Task header and only add it for tasks with
lifecycle info.

Also, I chose to order the tasks in the following order:

1. prestart non-sidecar tasks
2. prestart sidecar tasks
3. main tasks

The tasks are sorted lexicographically within each tier.

Sample output:

```
$ nomad alloc status 6ec0eb52
ID                  = 6ec0eb52-e6c8-665c-169c-113d6081309b
Eval ID             = fb0caa98
Name                = lifecycle.cache[0]
[...]

Task "init" (prestart) is "dead"
Task Resources
CPU        Memory       Disk     Addresses
0/500 MHz  0 B/256 MiB  300 MiB
[...]

Task "some-sidecar" (prestart sidecar) is "running"
Task Resources
CPU        Memory          Disk     Addresses
0/500 MHz  68 KiB/256 MiB  300 MiB
[...]

Task "redis" is "running"
Task Resources
CPU         Memory           Disk     Addresses
10/500 MHz  984 KiB/256 MiB  300 MiB
[...]
```
2020-03-23 15:57:24 -04:00
..
2020-03-23 14:32:11 -04:00
2019-11-19 10:36:41 -05:00
2018-03-11 17:43:19 +00:00
2018-05-11 18:05:43 -04:00
2020-01-08 10:44:00 -05:00
2019-05-16 17:06:03 -04:00
2019-04-23 12:50:23 +02:00
2017-07-20 21:24:21 -07:00
2017-07-20 21:24:21 -07:00
2017-07-07 12:07:07 -07:00
CLI
2018-05-07 14:50:01 -05:00
2019-12-16 10:08:17 -05:00
2018-05-21 18:00:14 -05:00
2018-08-14 14:06:04 -04:00
2018-11-08 09:48:43 -06:00
2018-11-08 09:48:43 -06:00
2020-03-21 17:52:49 -04:00
2019-12-16 10:08:17 -05:00
2018-03-11 19:06:15 +00:00
2019-09-09 10:04:41 -07:00
2019-05-13 10:01:19 -04:00
2020-01-02 14:42:27 -08:00
2020-01-02 14:42:27 -08:00
2018-06-14 15:48:01 +02:00
2020-02-16 16:04:59 -06:00
2020-02-16 16:04:59 -06:00
2018-03-21 20:27:32 -07:00
2017-07-20 21:24:21 -07:00
2017-07-20 21:24:21 -07:00
2017-07-20 21:24:21 -07:00
2017-09-19 10:08:23 -05:00
2017-09-19 10:08:23 -05:00
2017-09-19 10:08:23 -05:00
2017-09-19 10:08:23 -05:00
2017-07-20 21:24:21 -07:00
2017-07-20 21:24:21 -07:00
2018-05-11 18:05:43 -04:00
2017-07-20 21:24:21 -07:00