d63ffd6a3a
Reusable, generics-based CLI extracted from vpp-evpn's cmd/evpnc: a declarative command tree (Node[C]) from which dispatch, '?'-help and TAB-completion are derived, an interactive Shell[C], dynamic slot resolvers (context-dependent via captured args), text-or-JSON output (Emit), and color helpers (Paint/Label/KV). Builds on Linux and OpenBSD (readline termios override). Includes a self-contained example and a design proposal under docs/. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
9 lines
120 B
Modula-2
9 lines
120 B
Modula-2
module git.ipng.ch/ipng/golang-cli
|
|
|
|
go 1.25.0
|
|
|
|
require (
|
|
github.com/chzyer/readline v1.5.1
|
|
golang.org/x/sys v0.45.0
|
|
)
|