cmd icon indicating copy to clipboard operation
cmd copied to clipboard

Non-blocking external commands in Go with streaming output

Results 20 cmd issues
Sort by recently updated
recently updated
newest added

```go func main() { findCmd := cmd.NewCmd("dir") statusChan := findCmd.Start() go func() { for { fmt.Println("-------") status := findCmd.Status() fmt.Println(status.Stdout) } }()

Some commands use a return character at the end of each line in order to overwrite the previous output line with new data. This is often used to show progress...

An experiment to allow other split character, such as `\0` for `git ls-files -z` output.

If for some reason a `BeforeExec` takes some time (to delay a command for example) and `Stop()` is called while `BeforeExec` hasn't finished, the command is still executed. Example: ```go...

flatpak install [remote] [packageName]

Hello I have a command to build gradle like: ./gradlew build final dependencies > dep.txt but when executed through cmd.NewCmdOptions it gives an error when building in the Gradle: Task...

https://github.com/go-cmd/cmd/blob/500562c204744af1802ae24316a7e0bf88dcc545/cmd.go#L108-L134 Its description mentions that `Complete` should be false and `Error` should not be nil if signaled. But if the underlying cmd receives a `os.Interrupt` signal, the returned status will...

This is similar to #4, but it's more related to child process output content rather than output/buffer sizes. Child processes that output a lot of data, or run long enough,...

enhancement