Go to file
2022-11-21 19:02:19 -05:00
.github Add GitHub sponsorship info 2022-02-17 23:17:05 -05:00
z Fix minor annoying blank line after errors 2022-11-21 19:02:19 -05:00
.gitignore Add go.sum.work to gitignore 2022-03-29 06:12:47 -04:00
bonzai.go Fix bonzai.Vars.Del interface 2022-04-24 09:21:35 -04:00
BUILD Update name of foo to bonzai-example 2022-04-15 07:41:11 -04:00
CONTRIBUTING Add legal stuff 2022-02-17 17:47:28 -05:00
go.mod Add updated deps 2022-11-08 15:06:01 -05:00
go.sum Add updated deps 2022-11-08 15:06:01 -05:00
go.work.off Fix bug with paragraph trucation, update deps 2022-08-11 17:00:58 -04:00
LICENSE Add legal stuff 2022-02-17 17:47:28 -05:00
logo.png Add initial logo art 2022-03-30 15:56:46 -04:00
README.md Update README.md 2022-11-07 01:11:24 -05:00

🌳 Go Bonzai™ Command Compositor

GoDoc License Go Report
Card

"It's like a modular, multicall BusyBox builder for Go with built in completion and embedded documentation support."

"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."

logo

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.

There's no better language than Go for such things.

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.

Getting Started

Read the book:

Copy or clone the example template:

Get ideas for your own by looking at others

Copyright 2022 Robert S. Muhlestein (mailto:rob@rwx.gg)
SPDX-License-Identifier: Apache-2.0

"Bonzai" and "bonzai" are legal trademarks of Robert S. Muhlestein but can be used freely to refer to the Bonzai™ project 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.