This repo is a GitHub template designed to help create new CmdBox
command modules quickly. It is kept in sync with the latest CmdBox
tagged version. See the check
list to be sure you change everything and don't leave any
of the defaults that might confuse users of your module. Every place
foo
or _foo
appear in this document is something that needs to
change. (Find them easily with git grep foo
.) Keep in mind that the
CmdBox modules document themselves with embedding usage and other
documentation and therefore will likely not need a lot of content in
this README.md file. Keep the cmd.go
and main.go
file
names. Also keep the cmd
package (which is ignored on import). (Delete
and replace this paragraph with dap
or cap
in vi
.)
This command can be installed as a standalone program or composed into a CmdBox composite monolith.
Use go install
to install as a standalone:
go install github.com/rwxrob/cmdbox-_foo/foo@latest
Use import
with a blank identifier to be composed:
import (
"github.com/rwxrob/cmdbox"
_ "github.com/rwxrob/cmdbox-_foo"
)
See the cmd.go
file itself for additional embedded
documentation about this command.
foo
foo help
foo version
- Update GoDoc link
- Update starting summary paragraph
- Update the Install section
- Update the Usage section
- Add more sections (if needed) but avoid
- Update the Legal section
- Confirm LICENSE file
- Confirm DCO file
- Rename the
foo
directory - Update the import in
foo/main.go
file - Update the
go.mod
file (or rungo mod init
) - Optionally remove
help
/version
imports fromcmd.go
- Code the
cmd.go
file and any dependencies - Remove WIP tag when ready
Copyright (c) 2021 Robert S. Muhlestein Released under the Apache 2.0
Contributors and project participants implicitly accept the Developer Certificate of Authenticity (DCO).