Giter Club home page Giter Club logo

Comments (5)

Tyrrrz avatar Tyrrrz commented on August 16, 2024 2

I believe CliWrap may have what you need as part of its piping API

That's correct.

from simple-exec.

adamralph avatar adamralph commented on August 16, 2024 1

@dazinator stdin, stdout, and stderr are intentionally only exposed as strings as part of SimpleExec's deliberate simplicity. At one time I considered exposing streams etc. but I believe it's beyond the scope of SimpleExec and, not least, it's not something I need. You may want to take a look at a more advanced library for your needs. For example, I believe CliWrap may have what you need as part of its piping API. /cc @Tyrrrz

from simple-exec.

dazinator avatar dazinator commented on August 16, 2024

I've just come accross this library and jumped straight in using version 9 alpha 1 on windows 10 and ubuntu 20.04 - it is working well, and enabled me to remove some flakier process handling. Thank you for your hard work on this.

from simple-exec.

adamralph avatar adamralph commented on August 16, 2024

@dazinator that's great to hear. Hopefully I'll be able to move 9.0.0 towards RTM soon. Any feedback you may have is welcome.

from simple-exec.

dazinator avatar dazinator commented on August 16, 2024

I do have a question,

I am trying to execute docker config create foo and supply some data through stdin as described here: https://docs.docker.com/engine/reference/commandline/config_create/

The data I need to supply through stdin corresponds to some file content held as byte[] in the database.

The issue I have is that I can only supply the data for the stdin as a string argument via SimpleExec. This means I have to convert from the raw byte[] to a string first. This has me wondering if I could hit issues with encoding. I will do some tests, however it would be good if the stdin could be written as raw bytes!

from simple-exec.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.