Skip to content

Releases: blurgyy/dt

v0.7.10

13 Oct 14:31
v0.7.10
158ae86
Compare
Choose a tag to compare

[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

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

08 Jun 03:03
v0.7.9
f306aaf
Compare
Choose a tag to compare

[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

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

15 Apr 15:16
v0.7.8
092f5ea
Compare
Choose a tag to compare

[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 and unless_os

Features

  • Config renderablility globally or per-group explicitly
  • Allow conditioning on os-release info with if_os and unless_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 and unless_os

v0.7.7

05 Apr 13:25
v0.7.7
4203e88
Compare
Choose a tag to compare

[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 to if_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

27 Mar 14:00
v0.7.6
308b943
Compare
Choose a tag to compare

[0.7.6] - 2022-03-27

Bug Fixes

  • Better error message while creating directory over existing file

v0.7.5

16 Mar 11:25
v0.7.5
2924c1b
Compare
Choose a tag to compare

[0.7.5] - 2022-03-16

Features

  • Determine config path from environment variables (#2)

Miscellaneous Tasks

  • Move help messages to doc comments

Refactor

  • Handle panics occurred during inferring config path

v0.7.4

06 Mar 15:26
v0.7.4
bf6c971
Compare
Choose a tag to compare

[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 and for_uid
  • Add block helper for_host

Miscellaneous Tasks

  • Remove unused use in module item

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

24 Feb 07:55
v0.7.3
cddbd82
Compare
Choose a tag to compare

[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 to Operate
  • Rearrange order of struct definitions in config.rs
  • Update doc comments

v0.7.2

14 Feb 13:43
v0.7.2
26af7ac
Compare
Choose a tag to compare

[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

04 Feb 12:10
v0.7.1
4ad53e0
Compare
Choose a tag to compare

[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 to base and LocalGroup to Group