bonzai/README.md

49 lines
2.6 KiB
Markdown
Raw Normal View History

# 🌳 Go Bonzai™ Command Compositor
2022-03-30 19:56:46 +00:00
[![GoDoc](https://godoc.org/github.com/rwxrob/bonzai?status.svg)](https://godoc.org/github.com/rwxrob/bonzai)
[![License](https://img.shields.io/badge/license-Apache2-brightgreen.svg)](LICENSE)
[![Go Report
Card](https://goreportcard.com/badge/github.com/rwxrob/bonzai)](https://goreportcard.com/report/github.com/rwxrob/bonzai)
2022-04-07 07:56:21 +00:00
2022-11-07 01:32:02 +00:00
> "It's like a modular, multicall BusyBox builder for Go with built in completion and embedded documentation support."
2022-02-15 04:04:15 +00:00
2022-11-07 01:32:02 +00:00
> "The utility here is that Bonzai lets you maintain your own personal 'toolbox' with built in auto-complete that you can assemble from various Go modules. Individual commands are isolated and unaware of each other and possibly maintained by other people."
2022-11-07 01:32:02 +00:00
![logo](logo.png)
2022-03-31 08:23:24 +00:00
2022-11-07 01:32:02 +00:00
Bonzai was born from a very real need to replace messy collections of shell scripts, wasteful completion sourcing, and OS-specific documentation with a single, stateful, binary composed of commands organized as rooted node trees with a clean, modular, portable, statically-compiled, and dynamically self-documenting design.
2022-11-07 01:32:02 +00:00
There's no better language than Go for such things.
2022-11-07 06:06:17 +00:00
Bonzai gets its name from the fact that Bonzai users are fond of meticulously manicuring their own stateful command trees, built from imported composite commands that they can easily copy and run on on any device, anywhere.
Bonzai users can easily share their own commands with others just like they would any other Go module and since any Bonzai command also doubles as a high-level library package, even non-Bonzai users benefit.
Most realize Bonzai really distinguishes itself from anything else out there the first time they turn any command branch into a fully-documented, tab-completing, stand-alone binary simply by wrapping it in five lines of code. Such is the beauty of stateful command tree design. There's simply nothing else like it, in Go or any other language.
2022-11-07 01:32:02 +00:00
## Getting Started
2022-02-18 04:48:42 +00:00
2022-11-07 01:32:02 +00:00
1. Read the book:
* https://github.com/rwxrob/book-bonzai
1. Copy or clone the example template:
* https://github.com/rwxrob/bonzai-example
1. Get ideas for your own by looking at others
2022-03-01 12:36:06 +00:00
2022-11-07 01:32:02 +00:00
* https://github.com/rwxrob/z
* https://github.com/rwxrob/pomo
2022-02-18 05:11:35 +00:00
## Legal
2022-02-17 22:47:28 +00:00
Copyright 2022 Robert S. Muhlestein (<mailto:rob@rwx.gg>)
2022-02-20 00:22:03 +00:00
SPDX-License-Identifier: Apache-2.0
2022-02-17 22:47:28 +00:00
"Bonzai" and "bonzai" are legal trademarks of Robert S. Muhlestein but
2022-03-25 01:49:06 +00:00
can be used freely to refer to the Bonzai™ project
2022-02-17 22:47:28 +00:00
<https://github.com/rwxrob/bonzai> without limitation. To avoid
potential developer confusion, intentionally using these trademarks to
refer to other projects --- free or proprietary --- is prohibited.