Skip to content

Latest commit

 

History

History
14 lines (9 loc) · 623 Bytes

README.md

File metadata and controls

14 lines (9 loc) · 623 Bytes

Build Status godoc reference

go-cli

A minimalist framework for CLIs containing nested commands.

There's a surprising amount of entirely uninteresting code needed to create a human and machine friendly CLI such as

  • ensuring proper exit codes on invalid input
  • calculating sub-command list padding
  • parsing os.Args so each command is passed only the arguments scoped to it

See the example