Glossary
One word, one meaning.
Every term Barnark uses, in alphabetical order. A word means one thing across this whole site, and matches the words in the browser app and on the command line.
- Barn
- A project with a
.barn/folder at its root, where Barnark keeps its records. - Ark
- A named folder and the template that follows it. A project can have many. Its name is unique in the project, and its folder can be anywhere on your computer. The folder holds a small
.barn-ark.jsonthat points back to the project. - Bound template
- The template that follows an ark’s folder. It is made together with the folder by a clone, and every change to it is a revision.
- Check
- Comparing an ark’s folder with its template, and reporting what is missing and what is unexpected, and, where the ark has file rules, the files they don’t allow.
- Clone
- To copy a template under a name you give it, as a new ark’s template, and make the ark’s folder. The copy is tied to nothing.
- Collection
- A folder of a template that holds only members, all of one member type, such as
Contextin Domain Driven Design. - Component
- A building block of a template: a folder with a meaning and its tags, holding fixed folders, a collection or nothing. It is placed when the template’s tree uses it, and only available when nothing does yet.
template:componentslists them, and the browser app’s Components view shows them. A component can be copied into one of your templates, where it is available until placed. - Copy
- To make a new, unbound template of your own from a shipped template or one of yours, with no folder. Nothing is copied out of an ark. Changing one never changes the other.
- Dry run
--dry-runon a clone: checks the template, the name and the target, and prints the folders it would make without writing anything.- Fixed folder
- A folder the template names itself, such as
KernelorApi. Every folder made to the template has it. - Leaf
- A folder of a template with no folders of its own. It is where the template stops and your code begins.
- Meaning
- The words that say what a folder of a template, or a member type, is for.
- Member
- A folder you add to a collection and name, such as
ReservationinContext. It is part of the template, so adding one makes a revision. - Member type
- What a template says once about every member of a collection: what a member is, and which folders it holds.
- Missing
- A folder the template expects that is not on disk. A kind of inconsistency the check reports.
- Revision
- One version of a template. Every change adds one, with a reason Barnark writes, and none is changed in place.
- Shipped template
- One of the six templates Barnark ships, the GUI’s Barnark scaffolds: read-only, and changed only by a new Barnark.
- Slot
- The command line’s word for a member type a folder offers.
template:offerslists slots andtemplate:newtakes one. - Tag
- A label a template gives its folders to say what part each plays, such as
Domain. A folder carries the tags of its kind of folder. Tagging or untagging a shared component reaches every occurrence of it; tags do not pass down to the folders inside it. - File rule
- An ark’s statement, by tag, of which files the folders carrying that tag may hold: name patterns such as
*.php. The check reports a file that matches none. Rules belong to the ark, not to a template. - Template
- A description of what folders a project has and what each is for. Barnark says template for every one, the bound one included; the GUI calls it a scaffold.
- Scaffold
- What the GUI calls a template. Your scaffolds are the ones you copied, Barnark scaffolds the shipped ones, and an ark’s own scaffold is reached through its ark.
- Unbound template
- A template of yours that is not attached to any folder. It can be cloned into the project as an ark, or deleted.
- Unexpected
- A folder on disk that the template does not expect. A kind of inconsistency the check reports.