Comments (2)
Yes, it presumes output is lines of strings. Internally, it does just buffer data, but then calls like https://github.com/go-cmd/cmd/blob/v1.4.0/cmd.go#L334 presume string lines. I'm not sure it's feasible to adapt to binary output because the string line presumption is baked into the design.
from cmd.
Thanks for the clarification. Instead of a replacement, would the addition of a status.StdoutReader
which just returned an io.Reader over the internal data, and/or something similar on an OutputStream be feasible, or are there internals that would break if the data was accessed in that way?
from cmd.
Related Issues (20)
- wrong description of Status for receiving a signal of interrupt
- not support cmd HOT 1
- Is there a way to have stderr buffered into stdout HOT 3
- example cmd.NewCmdOptions not working HOT 1
- is it possible to change password? HOT 1
- Windows10 HOT 3
- Part of #11517
- Updated and install
- How can I execute a sentence command directly? HOT 1
- 🔊
- Stdout empty when using Streaming HOT 6
- Running a script to start an external application, when the main application terminates, the one started from the script crashes as it no longer has an Stdout & Stderr HOT 1
- make terminating process group optional HOT 1
- python command in streaming mode not streaming the stdout HOT 2
- cant go get HOT 3
- Command is still executed if Stop() is called during BeforeExec hooks
- How to restart after Stop()
- the replacement of "+build" to "go:build" needs a change of go version in go mod
- when the process is ready HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cmd.