Skip to content
This repository was archived by the owner on Aug 9, 2022. It is now read-only.

benthor/gocli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

[Archived] gocli

Simple, pure Go command line interface (cli) library

It wraps the (pure Go) line editor Liner (peterh/liner) and adds:

  • command registration with callbacks and short description
  • automatic history
  • automatic tab completion
  • running a REPL-ish loop

A few (currently) built-in defaults:

  • whitespaces in commands are not allowed
  • the tab completer will complete non-ambiguous but incomplete commands while preserving all arguments
  • options registered with empty help message won't show up in help list

Roadmapped for after the initial release:

  • nested contexts

(May or may not be idiomatic Go, the author is just a pedestrian hacker messing around with an interesting new programming language)

About

Simple, pure Go command line interface (cli) library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages