Rename loom → norn
The project is now norn: .loom/ is .norn/, loomctl is nornctl (NORNCTL_* env vars, ~/.config/nornctl), and the Gitea org is norn. Event logs moved with the directory but their text is unchanged — they are a record of what was decided at the time. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c6354c95fa
commit
dde7183528
36 files changed
+216
-216
No files matched your search
@@ -16,23 +16,23 @@ import (
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"git.hypertheory-labs.dev/loom/loom-cli/internal/lock"
|
||||
"git.hypertheory-labs.dev/norn/norn-cli/internal/lock"
|
||||
)
|
||||
|
||||
// File is where the orientation lives, relative to the repository root.
|
||||
//
|
||||
// Beside .loom/event-log.md rather than inside .loom/externals/, because
|
||||
// Beside .norn/event-log.md rather than inside .norn/externals/, because
|
||||
// everything in that directory is somebody else's document — which is what makes
|
||||
// "do not edit these" a rule you can state in four words — and because `check`
|
||||
// walks it and would report a generated file as an unlocked external forever.
|
||||
const File = ".loom/orientation.md"
|
||||
const File = ".norn/orientation.md"
|
||||
|
||||
const preamble = `<!-- Generated by ` + "`loomctl orient`" + `. Safe to overwrite; nobody typed it.
|
||||
const preamble = `<!-- Generated by ` + "`nornctl orient`" + `. Safe to overwrite; nobody typed it.
|
||||
Regenerate after adopting a document or reconciling a change. -->
|
||||
|
||||
# What this repository depends on
|
||||
|
||||
Copies of other people's documents are kept under ` + "`.loom/externals/`" + `, at a path
|
||||
Copies of other people's documents are kept under ` + "`.norn/externals/`" + `, at a path
|
||||
that says where each came from. **They are copies: do not edit them.** Anything
|
||||
you want to say about one goes in a file *beside* it, never into it.
|
||||
|
||||
@@ -41,8 +41,8 @@ Three moves, and each has a document that owns the rule:
|
||||
- **A copy is wrong, or you needed something it does not say** — write it in
|
||||
` + "`<name>.gaps.md`" + ` beside the copy.
|
||||
- **What of ours depends on a copy** — write it in ` + "`<name>.usages.md`" + ` beside it.
|
||||
- **A source changed** — ` + "`loomctl external check`" + ` says so and stages the new copy;
|
||||
` + "`loomctl external apply`" + ` takes it. Neither edits anything on its own.
|
||||
- **A source changed** — ` + "`nornctl external check`" + ` says so and stages the new copy;
|
||||
` + "`nornctl external apply`" + ` takes it. Neither edits anything on its own.
|
||||
`
|
||||
|
||||
// Generate writes the orientation for the repository at root.
|
||||
@@ -72,9 +72,9 @@ func Generate(root, out string) (string, error) {
|
||||
}
|
||||
}
|
||||
|
||||
if dir := filepath.Join(root, ".loom", "published"); isDir(dir) {
|
||||
if dir := filepath.Join(root, ".norn", "published"); isDir(dir) {
|
||||
b.WriteString("\n## This repository publishes\n\n")
|
||||
b.WriteString("See `.loom/published/`. What is handed over for others to depend on is\n")
|
||||
b.WriteString("See `.norn/published/`. What is handed over for others to depend on is\n")
|
||||
b.WriteString("there; the rest of the repository is not hidden, it is simply not what\n")
|
||||
b.WriteString("anybody depends on.\n")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user