Repository navigation
v0.1.0
·
0 commits
to d1642393886ade5615762dbf48f149d6236488f5
since this release
Breaking changes
lq_init()'s on-disk layout moves from<path>/{.git,templates/}to
<path>/.lengua/<source>/{.git,templates/}, matchinglenguaCLI's
.lengua/restructure (lengua issue #3).pathis now a library that
can hold more than one named source instead of a single git repo — the
unit lenguar has always managed (.git+templates/) is unchanged,
it's just nested one level deeper. Old-layout stores are not migrated.
New features
lq_fetch()adds another source to an already-initialized library, using
the samefrom_dir/from_repo/ref/subdir/forcearguments as
lq_init()— this is how a library pools templates from more than one
existing store without merging their git history.lq_update()refreshes one (source =) or every source from its
recorded origin via a fast-forward-only git fetch (never a hard reset);
returns alenguar_updatedata frame reporting every source's outcome
rather than stopping at the first failure.sourceargument onlq_add()/lq_get()/lq_list()/lq_search()/
lq_log()/lq_diff()/lq_tag()/lq_tag_list()/lq_tag_rm(): required
to disambiguate a write or single-source read once a library has more
than one source; optional onlq_get()/lq_list()/lq_search()to read
one source directly instead of the merged view.lq_list()/lq_search()gain asourcecolumn, and merge across every
source (last-fetched wins on a name collision) unless scoped with
source =.lq_init()gains anameargument to name the library's first source
(defaults to"local"when starting empty).
New features
- Initial release. R bindings (via extendr) to
lengua, a git-backed
library for templated text and snippets:lq_init(),lq_add(),
lq_get(),lq_list(),lq_search(),lq_log(),lq_diff(). - Tagging:
lq_tag(),lq_tag_list(),lq_tag_rm()name a specific
revision of a template (optionally retroactively, viarev), without
duplicating content — matchinglenguaCLI'stag add/list/rm. lq_init()gainedfrom_dir/from_repo(withref/subdir/force) to
adopt an existing store instead of starting empty, matchinglengua
CLI'sinit --from-dir/--from-repo. Local sources are adopted via a
plain filesystem copy, so this works reliably from R regardless of the
embedding process's signal disposition.lq_get()gained arevargument to read a template at a prior revision
or tag instead of the working tree.- Output for
lq_list()/lq_search()/lq_log()/lq_diff()/tag results
goes throughcli, matching thelenguaCLI's color palette (respects
NO_COLOR).