Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: allow spinners to be indented #146

Open
lordmauve opened this issue Jun 30, 2020 · 1 comment · May be fixed by #154
Open

Suggestion: allow spinners to be indented #146

lordmauve opened this issue Jun 30, 2020 · 1 comment · May be fixed by #154

Comments

@lordmauve
Copy link

lordmauve commented Jun 30, 2020

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
@manrajgrover
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants