Repository navigation
Releases
Releases · jprybylski/lengua
v0.3.0
Changed
- Breaking: the on-disk store layout moves from
<store>/{.git,templates/}to
<store>/.lengua/<source>/{.git,templates/}, with a new.lengua/sources.tomlmanifest.
A--storenow points at a library that can hold one or more named sources instead of
a single git repo — the unit lengua has always managed (.git+templates/) is unchanged,
it's just nested one level deeper. Old-layout stores are not migrated;lengua(any command
butinit) now fails with a clear error pointing at the new layout instead of guessing.
Closes #3. Store::open's old heuristic ("doestemplates/exist next to.git") is replaced by an
unambiguous check: does.lengua/sources.tomlexist.
Added
lengua fetchadds another source to an already-initialized library, using the same
--from-dir/--from-repo/--ref/--subdir/--forceflags asinit. This is how a
project pools templates from several existing stores without merging their git history —
including a project that never runs plaininit/addat all, only ever consuming shared
sources.lengua update [--source <NAME>]refreshes one or every source from its recorded origin via
a fast-forward-only git fetch (never a hard reset) — a diverged source fails loudly rather
than losing anything, and updating "all" reports every source's outcome even after one
fails. There's no separate lockfile: each source's own git history is the record of what
commit it's at.--source <NAME>onadd/get/list/search/log/diff/tag: required to disambiguate
a write or single-source read once a library has more than one source; optional on
get/list/searchto read one source directly instead of the merged view.- Merged
get/list/search(no--source) resolve a name across every source with
last-fetched-wins precedence. A name defined in more than one source always prints a
warning — atfetchtime when the collision is created, and again whenever a shadowed name
is resolved — never a silent choice. init --name <NAME>/fetch --name <NAME>name a source explicitly; otherwise it's
derived from--from-dir's basename or--from-repo's last path segment (plaininitwith
no adoption flags defaults tolocal). A name collision on auto-derivation is an error
asking for--name, not a silent rename.
v0.2.0
Added
- Tags:
tag add/list/rmname a specific revision of a template without duplicating content, stored asrefs/lengua/tags/<template>/<tag>(not real git tags, which are repo-wide) - the same tag name can independently exist on several templates, andtag add --rev <revision>retroactively tags a prior revision. Tag names now work anywhere a revision is accepted (get --rev,diff). init --from-dir/--from-repo(with--ref,--subdir,--force) adopts an existing store instead of only ever starting empty, mirroring--from-repo's"[host/]owner/repo[/subdir][@ref]"shorthand from the siblingquartifyr/deckifyrprojects (host defaults togithub.com; an explicit host reaches GitHub Enterprise).- New
docs/consuming.mdwalkthrough for pulling down and using an existing shared template library. - The CLI now has color (green/red for diff lines, red for errors, cyan for tag names, bold for headings, dim for metadata), respecting
NO_COLOR/CLICOLOR/CLICOLOR_FORCE.--jsonoutput is unaffected.
Fixed
Store::opennow refuses to open a directory that isn't a lengua store (notemplates/dir), instead of silently committing template blobs into whatever git repo happened to be at that path - including a user's own project, if lengua were run there by mistake.
v0.1.3
Added
- Release binaries now also published for Windows (
x86_64-pc-windows-msvc).
Changed
- Release asset names now follow
lengua_<version>_<os>_<arch>(e.g.lengua_0.1.3_linux_amd64.tar.gz), matchingdatum's convention, instead of raw Rust target triples (lengua-x86_64-unknown-linux-gnu.tar.gz).