https://github.com/hashibuto/commander
interactive command processor
https://github.com/hashibuto/commander
cli command golang parser repl shell
Last synced: about 2 months ago
JSON representation
interactive command processor
- Host: GitHub
- URL: https://github.com/hashibuto/commander
- Owner: hashibuto
- License: mit
- Created: 2024-06-03T03:15:34.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-12-07T22:00:20.000Z (over 1 year ago)
- Last Synced: 2025-01-30T03:43:47.658Z (over 1 year ago)
- Topics: cli, command, golang, parser, repl, shell
- Language: Go
- Homepage:
- Size: 1.89 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# commander
commander is an interactive command processor, similar to python's CMD2, but written for golang. it is not a golang REPL, but rather an interactive shell environment which allows the user to define and implement rich commands, which can then be executed with amenities such as:
- full tab completion
- contextual help
- stdout piping and redirection
- searchable command history
# demo
a brief screen recording showcasing some of commander's capabilities

# example
please explore the working [example](https://github.com/hashibuto/commander/tree/master/example) in the `/example` directory
```
go run ./example/*.go
```