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

Update docs / problems using listr-input #134

Open
schadenn opened this issue Jul 2, 2019 · 2 comments
Open

Update docs / problems using listr-input #134

schadenn opened this issue Jul 2, 2019 · 2 comments

Comments

@schadenn
Copy link

schadenn commented Jul 2, 2019

Hi,

first of all:
I don't think execa can be used the way it is displayed in the docs anymore. execa.stdout is not a function (anymore?).

Second:

const list = new Listr([
  {
    title: "Choose where to start",
    task: () => input("Enter a number: ", {
      done: step => console.log(step) // not even using it for a minimal repro
    })
  },
  {
    title: "Step 1",
    task: () => execa.command("npm install")
  }
])

list.run()

This just crashes my Listr.
I can verify (setting stdio or something) that - after I press enter - it'll continue to process "Step 1" and executes the "npm install", but it just doesn't show any progress anymore. The spinner in front of "Choose where to start" just hangs and there'll not be one in front of "Step 1".

Does anyone know why? Tried all combinations using Promises, Streams etc.... Just can't get it to work.

@assetcorp
Copy link

Did anyone find a solution for this? I am having the same issue.

@schadenn
Copy link
Author

schadenn commented Nov 4, 2019

I didn't - sadly had to remove listr for my use-case.

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

2 participants