Open romdr opened 5 years ago
Display time elapsed for each task, instead of the total time (that is already displayed at the beginning of the line)
In the case of a task ground, the time displayed is the time elapsed by the whole group.
Example:
#alfred.yml test.group: summary: sleep 1 tasks: test.2 test.3 test.3: summary: sleep 3 command: sleep 3 test.2: summary: sleep 2 command: sleep 2 test.1: summary: sleep 1 command: sleep 1 test: summary: sleep tasks: test.group test.1 test.2 test.3
$ alfred.exe test [ 0s] (10 May 19 16:37 PDT) [/tmp] test started [] sleep [ 0s] (10 May 19 16:37 PDT) [/tmp] test tasks test.group, test.1, test.2, test.3 [ 0s] (10 May 19 16:37 PDT) [/tmp] test.group started [] sleep 1 [ 0s] (10 May 19 16:37 PDT) [/tmp] test.group tasks test.2, test.3 [ 0s] (10 May 19 16:37 PDT) [/tmp] test.2 started [] sleep 2 [ 2s] (10 May 19 16:37 PDT) [/tmp] test.2 ✔ ok [] elapsed time '2s' [ 2s] (10 May 19 16:37 PDT) [/tmp] test.3 started [] sleep 3 [ 5s] (10 May 19 16:37 PDT) [/tmp] test.3 ✔ ok [] elapsed time '3s' [ 5s] (10 May 19 16:37 PDT) [/tmp] test.group ✔ ok [] elapsed time '5s' [ 5s] (10 May 19 16:37 PDT) [/tmp] test.1 started [] sleep 1 [ 6s] (10 May 19 16:37 PDT) [/tmp] test.1 ✔ ok [] elapsed time '1s' [ 6s] (10 May 19 16:37 PDT) [/tmp] test.2 started [] sleep 2 [ 8s] (10 May 19 16:37 PDT) [/tmp] test.2 ✔ ok [] elapsed time '2s' [ 8s] (10 May 19 16:37 PDT) [/tmp] test.3 started [] sleep 3 [ 11s] (10 May 19 16:37 PDT) [/tmp] test.3 ✔ ok [] elapsed time '3s' [ 11s] (10 May 19 16:37 PDT) [/tmp] test ✔ ok [] elapsed time '11s'
I didn't mean to merge the other changes (that break the CI build). I created a PR up to specifically the CL that introduced the elapsed time change. I probably need to make a new PR or fix that branch.
Display time elapsed for each task, instead of the total time (that is already displayed at the beginning of the line)
In the case of a task ground, the time displayed is the time elapsed by the whole group.
Example: