A minimal, deterministic command-line interface (CLI) utility written in Go that outputs the first argument it receives to standard output.
This project is an autonomous software factory project designed, specified, implemented, and verified end-to-end by Noctifab — the autonomous dark factory agent platform for software engineering.
echo-cli is a lightweight Go utility adhering to SOLID design principles and pure domain boundaries:
- With Arguments:
echo-cli <arg1> <arg2> ...prints the first argument (<arg1>) followed by a newline\ntostdout, exiting with code0. - Without Arguments:
echo-cliprints a single newline\ntostdout, exiting with code0. - Pure Domain Boundary: Argument processing resides in
pkg/echoer, completely decoupled from CLI argument parsing and I/O incmd/echo.
echo/
├── SPEC.md # Technical specification & definition of done
├── go.mod # Go module definition (Go 1.22+)
├── Makefile # Project test & quality automation
├── cmd/
│ └── echo/
│ └── main.go # Composition root (CLI entrypoint)
├── pkg/
│ └── echoer/
│ ├── echoer.go # Pure domain logic (Echo function)
│ └── echoer_test.go # Table-driven unit tests
└── tests/
└── cli_integration_test.go # Subprocess CLI integration tests
# Build the binary
go build -o bin/echo-cli cmd/echo/main.go
# Run with arguments
./bin/echo-cli hello world
# Output: hello
# Run without arguments
./bin/echo-cli
# Output: (blank line)# Run all unit and integration tests
make test
# Run static analysis
make lintThis repository was generated autonomously by Noctifab via its multi-agent orchestration pipeline:
- Product Manager Agent: Decomposed
SPEC.mdinto actionable user stories with explicit Definition of Done (DoD) criteria and black-box contract scenarios. - Planner Agent: Synthesized an optimal dependency graph of atomic development tasks.
- Generator & Tester Agents: Executed test-driven development (TDD) in isolated worktree sandboxes.
- Sovereign Pre-Merge Gate: Verified 100% test pass consensus before integrating into the release trunk.
For more information on the dark factory architecture, visit the Noctifab repository on GitHub.
The implementation of this project has been autonomously generated by Noctifab.
You can browse the full generated codebase and verification tests on the feat/noctifab-generated branch.