mirror of
https://git.ipng.ch/ipng/golang-cli.git
synced 2026-06-15 15:25:51 +00:00
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) <[email protected]>
9 lines
120 B
AMPL
9 lines
120 B
AMPL
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
|
|
)
|