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

Feat: support shell script #1

Closed
imcuttle opened this issue Sep 29, 2018 · 1 comment
Closed

Feat: support shell script #1

imcuttle opened this issue Sep 29, 2018 · 1 comment

Comments

@imcuttle
Copy link

imcuttle commented Sep 29, 2018

  • Expected
cli()
  .use('echo foo | cat')
  .end(function(err, stdout, stderr) {
     console.log(stdout)
     if (err) throw err
  })

// Log:  
// { status: 0, text: 'foo', err: null } undefined
  • Actual
cli()
  .use('echo foo | cat')
  .end(function(err, stdout, stderr) {
     console.log(stdout)
     if (err) throw err
  })

// Log:  
// { status: 0, text: '123 | cat\n', err: null } undefined
@mklabs
Copy link
Owner

mklabs commented Sep 29, 2018

Hi @imcuttle

What is the issue exactly ? I didn't use gentle-cli in a while. It's probably because you pipe cat. I admit I didn't use or tested this use case.

It seems a valid issue.

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