Documentation
¶
Overview ¶
Package example provides the Bonzai command branch of the same name.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BarCmd = &Z.Cmd{ Name: `bar`, Aliases: []string{"B", "notbar"}, Commands: []*Z.Cmd{help.Cmd, fileCmd}, Call: func(_ *Z.Cmd, _ ...string) error { log.Printf("would bar stuff") return nil }, }
exported branch
View Source
var Cmd = &Z.Cmd{ Name: `search`, Summary: `An experimental search enginer for a keg`, Version: `v0.0.1`, Copyright: `Copyright 2023 Jared L Rickert`, License: `Apache-2.0`, Site: `jlrickert.me`, Source: `git@github.com:jlrickert/keg-search.git`, Issues: `github.com/jlrickert/keg-search/issues`, Commands: []*Z.Cmd{ help.Cmd, conf.Cmd, vars.Cmd, SearchCmd, }, Dynamic: template.FuncMap{ "uname": func(_ *Z.Cmd) string { return Z.Out("uname", "-a") }, "dir": func() string { return Z.Out("dir") }, }, Description: ` {{aka}} search command documenation `, Other: []Z.Section{ {`Custom Sections`, ` Additional sections can be added to the Other field. A Z.Section is just a Title and Body and can be assigned using composite notation (without the key names) for cleaner, in-code documentation. The Title will be capitalized for terminal output if using the common help.Cmd, but should use a suitable case for appearing in a book for other output renderers later (HTML, PDF, etc.)`, }, }, }
Cmd provides a Bonzai branch command that can be composed into Bonzai trees or used as a standalone with light wrapper (see cmd/).
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.