halo icon indicating copy to clipboard operation
halo copied to clipboard

Suggestion: allow spinners to be indented

Open lordmauve opened this issue 5 years ago • 1 comments

In our project we perform a list of tasks sequentially, and each one of which displays a Halo spinner. However each such list of tasks is actually within a group. I'd like to visually illustrate the structure of the task list and groups (and possible, subtasks).

To indicate the nesting I'd like to be able to pass an indent= keyword argument to the Halo constructor:

Halo(indent=" " * 2)

I would personally use spaces for this but I can imagine wanting maybe bullets, or using box-drawing characters to describe a tree:

Halo(indent=" •")
Halo(indent="│├")

To illustrate, I'd like to my program's output to look like this once complete:

somegroup:
    task 1:
        ✔ perform subtask 1.1
    ✔ perform task 2

lordmauve avatar Jun 30 '20 11:06 lordmauve

@lordmauve Thanks for raising this issue! This sounds interesting, however, I'm thinking if there is a better way to do this?

manrajgrover avatar Aug 01 '20 21:08 manrajgrover