Releases: blurgyy/dt
Releases · blurgyy/dt
v0.7.10
[0.7.9] - 2022-06-08
Bug Fixes
- Don't abort with
ConfigError
if dir to be created already exists
Documentation
- Outdated API doc for
Registry::get()
- Fix typos
- Update key references
Miscellaneous Tasks
- Fix typos
- Add typos checking config for documentation
- Minor adjustment to error message
Styling
- Format code with textwidth=100
Testing
- Update as per commit 71ae07e
Build
- Strip installed binary
Ops
- Check typos with crate-ci/typos
- Also check typos in documentation
- Remove unused exclude entry for checking typos
v0.7.9
[0.7.9] - 2022-06-08
Bug Fixes
- Don't abort with
ConfigError
if dir to be created already exists
Documentation
- Outdated API doc for
Registry::get()
- Fix typos
- Update key references
Miscellaneous Tasks
- Fix typos
- Add typos checking config for documentation
- Minor adjustment to error message
Styling
- Format code with textwidth=100
Testing
- Update as per commit 71ae07e
Build
- Strip installed binary
Ops
- Check typos with crate-ci/typos
- Also check typos in documentation
- Remove unused exclude entry for checking typos
v0.7.8
[0.7.8] - 2022-04-15
Bug Fixes
- Wrong help messages for helpers
- Unrenderable sources were not registered into registry
Documentation
- Adjust formatting in helpers' API docs and usage messages
- Add API docs for helper
if_os
andunless_os
Features
- Config renderablility globally or per-group explicitly
- Allow conditioning on os-release info with
if_os
andunless_os
helpers
Miscellaneous Tasks
- Update log messages and documentation for the new
renderable
key
Performance
- Lazy load non-renderable files
Styling
- Reuse helper's help strings internally
Testing
- Add tests for helpers
if_os
andunless_os
v0.7.7
[0.7.7] - 2022-04-05
Bug Fixes
- Do not silently pass unreadable sources while initializing registry
Documentation
- Add examples for using arrays in [context] to match attributes
- Add mandatory double quotes for usage examples for helpers
Features
- Template a group if any component of its name exists as a context key
- Match negated (list of) elements in block helpers
- Allow arrays from templating contexts to serve as conditions
Miscellaneous Tasks
- [breaking] Change
for_XX
helper names toif_XX
- Resolve warnings generated by cargo-clippy
Performance
- Minor optimization when matching condition is an array
Refactor
- Remove negated matching in block helpers
- Move negated matching to separate helpers
- Prepare for unit testing of helpers
Testing
- Add unit tests for templating helpers
- Use deterministic dummy functions for tests
v0.7.6
[0.7.6] - 2022-03-27
Bug Fixes
- Better error message while creating directory over existing file
v0.7.5
v0.7.4
[0.7.4] - 2022-03-06
Bug Fixes
- Error occurred during setting permissions no longer aborts program
Features
- Add key
ignore_failure
to treat syncing errors as warnings - Add block helpers
for_user
andfor_uid
- Add block helper
for_host
Miscellaneous Tasks
- Remove unused
use
in moduleitem
Performance
- Registry cache was not utilized
Refactor
- Use
to_string_lossy
to convert OsStr to str across codebase
Styling
- Log single-line verbose messages at level "debug"
v0.7.3
[0.7.3] - 2022-02-24
Bug Fixes
- Restore checks for remote groups
- Type of
Group::sources
was non-generic
Documentation
- Resolve dead links in API docs
Features
- Allow hierarchical subgroups delimitered with slashes in
name
of groups - Filter groups hierarchically via command line
Refactor
- Provide no default impl in trait
DTItem
- Restrict group's generic parameter with bound Operate
- Provide no default impl in trait
DTRegistry
- Render templates before modifying the file system
- Take ownership for methods that return
Self
Styling
- Rename trait
DTItem
toOperate
- Rearrange order of struct definitions in config.rs
- Update doc comments
v0.7.2
[0.7.2] - 2022-02-14
Bug Fixes
- Program panicked with non-existent relative staging/target path
Documentation
- Escape angled brackets in API docs
Features
- Pass no argument to helper
get_mine
to get hostname
Testing
- Check base's read permission in module
config
v0.7.1
[0.7.1] - 2022-02-04
Bug Fixes
- Host-specific item can sometimes be populated twice to destination
Documentation
- Fix highlighted lines in config example
- Fix broken links in API docs
Features
- Add built-in helper
get-mine
to retrieve value for current host - Add array of remote groups to
DTConfig
- Abort on base/target/staging being the same
- Treat empty paths in stating/base/target as
.
Miscellaneous Tasks
- Update roadmap
Refactor
- Make
Group
a generic type to prepare for remote groups
Styling
- Remove redundant commas and format comments
Testing
- Make unit tests self-contained
- Allow empty
base
to be present in config files - Refactor config tests that need filesystem access into config.rs
Ops
- Run tests on aarch64, armv7 and x86_64 architectures
Reafactor
- [breaking] Rename
basedir
tobase
andLocalGroup
toGroup