Documentation
¶
Overview ¶
create-b7 generates a B7 project from an embedded template (cli/README.md).
Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
config
Package config resolves and validates a configuration against a template's b7.features.json and the configuration model rules (site/content/docs/configuration-model.md › Rules).
|
Package config resolves and validates a configuration against a template's b7.features.json and the configuration model rules (site/content/docs/configuration-model.md › Rules). |
|
generate
Package generate writes a configuration of a template into a directory.
|
Package generate writes a configuration of a template into a directory. |
|
ordered
Package ordered is a JSON object that keeps its key order, so package.json, b7.json and b7.features.json are written back the way JSON.stringify would write them.
|
Package ordered is a JSON object that keeps its key order, so package.json, b7.json and b7.features.json are written back the way JSON.stringify would write them. |
|
regions
Package regions applies feature regions (ADR-014): lines between `#if <cond>` and `#endif` markers, in any comment style (`// #if x`, `# #if x`, `-- #if x`, `{/* #if x */}`, `<!-- #if x -->`), are kept only when <cond> holds.
|
Package regions applies feature regions (ADR-014): lines between `#if <cond>` and `#endif` markers, in any comment style (`// #if x`, `# #if x`, `-- #if x`, `{/* #if x */}`, `<!-- #if x -->`), are kept only when <cond> holds. |
|
template
Package template embeds ../templates, copied here by `go generate` (the copy is gitignored).
|
Package template embeds ../templates, copied here by `go generate` (the copy is gitignored). |
|
template/copy
command
Copies ../../../templates into ../templates for go:embed, without build output and local state.
|
Copies ../../../templates into ../templates for go:embed, without build output and local state. |
Click to show internal directories.
Click to hide internal directories.