You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Go to file
Rob Muhlestein 57b5b6da4a Initial commit 2 years ago
.github Initial commit 2 years ago
foo Initial commit 2 years ago
testdata/bar Initial commit 2 years ago
CONTRIBUTING Initial commit 2 years ago
LICENSE Initial commit 2 years ago
README.md Initial commit 2 years ago
foo.go Initial commit 2 years ago
foo_test.go Initial commit 2 years ago
go.mod Initial commit 2 years ago
go.work Initial commit 2 years ago
own.go Initial commit 2 years ago

README.md

Bonzai™ Sample foo Command (Template)

Create a new GitHub project using this template and change this README.md to match your project. Make all your template changes before making your first commit.

WIP Go Version GoDoc License

Install

This command can be installed as a standalone program or composed into a Bonzai command tree.

Standalone

go install github.com/rwxrob/foo/foo@latest

Composed

package cmds

import (
	"github.com/rwxrob/bonzai"
	"github.com/rwxrob/foo"
)

var Cmd = &bonzai.Cmd{
	Name:     `cmds`,
	Commands: []*bonzai.Cmd{help.Cmd, foo.Cmd},
}

Tab Completion

To activate bash completion just use the complete -C option from your .bashrc or command line. There is no messy sourcing required. All the completion is done by the program itself.

complete -C foo foo

If you don't have bash or tab completion check use the shortcut commands instead.

Embedded Documentation

All documentation (like manual pages) has been embedded into the source code of the application. See the source or run the program with help to access it.