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

Option to keep sub-tasks expanded #133

Open
muuvmuuv opened this issue May 22, 2019 · 4 comments
Open

Option to keep sub-tasks expanded #133

muuvmuuv opened this issue May 22, 2019 · 4 comments

Comments

@muuvmuuv
Copy link

I would like to show the user successes sub-tasks instead of just the main tasks. Would be great to have an option here, like showSubTasks.

@jasoncheng
Copy link

@muuvmuuv Do you find any solution on this?
Thanks

@muuvmuuv
Copy link
Author

muuvmuuv commented Jul 8, 2019

No @jasoncheng, unfortunately not.

@rap2hpoutre
Copy link
Contributor

rap2hpoutre commented Jul 18, 2019

@muuvmuuv @jasoncheng See: #131 (comment) (the lib has less features, but still have some like keeping sub-tasks expanded)

@zacharytamas
Copy link

@muuvmuuv @jasoncheng This functionality exists but it's not documented very clearly. The default renderer, listr-update-renderer has an option called collapse that is true by default. Setting this to false will remove the collapsing behavior. You can pass the renderer options as part of the options when you create a Listr instance.

So this will keep the subtasks expanded:

const listr = new Listr([
    // ...
  ],
  { collapse: false }
);

Unfortunately, if you're using TypeScript the types will complain about this so you have to put a @ts-ignore on the line before it.

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

No branches or pull requests

4 participants