go-cmd/cmd
Non-blocking external commands in Go with streaming output observed · 2026-08-28
Health v2 · maintenance only
63/100
- Activity 89
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3468
- days_rel: n/a
- days_push: 66
- n_releases_24m: 0
Adoption not part of the score
1027 stars · 141 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A small Go library wrapping os/exec.Cmd to run external commands safely in concurrent, asynchronous applications. It provides channel-based non-blocking execution, real-time stdout/stderr streaming, live status, and proper process termination.
Use cases
- run external commands asynchronously in Go
- stream stdout and stderr in real time from a subprocess
- start a long-running process and stop it later
- avoid race conditions when reading command output
- fire-and-forget command execution with a status channel
When to choose
- you need non-blocking subprocess execution with streaming output in Go
- you want safe, race-free reading of stdout/stderr while a command runs
- you need to start, monitor, and stop external processes concurrently
When to avoid
- you only need simple synchronous command execution with no streaming
- you are not working in Go
Facets
library · maturity stable
concurrency developer-tools developer-tools backend go windows cross-platform os-exec process-management streaming-output non-blocking async command-line linux macos
1 source
- readme: https://github.com/go-cmd/cmd · fetched 2026-08-28 · 649002ccbeb9
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| go-cmd/cmd | main | 63 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem