This release comes with a complete reworking under the hood, which you can read about in the new changelog.
The operation log file format was changed to better support the new hoard diff
and hoard status
commands.
hoard upgrade
to upgrade your operation logs in-place.Added a new hoard edit
command to allow users to modify their Hoard configuration file without needing to know where it is stored.
Added new hoard status
and hoard diff
commands, which help you understand the current state of all of your hoards. See the book for more on each command.
You can now tell Hoard to set special permissions on files and folders that it manages.
Fixed an invalid directive
warning if the HOARD_LOG
environment variable was not set.
Improved logging output, including cleaning up unnecessary output and making sure error messages are logged where they occur, for maximum context when HOARD_LOG=debug
or trace
.
Basically everything got some amount of refactoring over this release -- too much to list here. These are the highlights:
String
and Pathbuf
with wrapper types that enforce extra invariants.tokio
runtime, further decreasing runtime to within a few seconds.The above changes led to an anecdotal runtime decrease from 20 minutes to less than one minute, with multiple hoards, one of which contains multiple large binary files.
This was originally going to be a bugfix release, but a critical dependency replacement made this a minor release instead.
Due to the change in time libraries, operation log files created by older versions of Hoard can no longer be parsed correctly and will cause Hoard to error.
To prevent this, make sure that your hoards are current (i.e. the files in the hoard and the files on the filesystem are the same, a hoard restore
should be enough for this) and then run one of the following commands, depending on your system:
[ -n "$XDG_DATA_HOME" ] && rm -r "$XDG_DATA_HOME/hoard/history" || rm -r "$HOME/.local/share/hoard/history"
rm -r $HOME/Library/Application Support/com.shadow53.hoard/history
rm -r %AppData%\shadow53\hoard\history
path_exists
env condition.hoard list
commandchrono
to time
crate to avoid a CVE.**/
to match any nested directory or file.config
are now detected and warned against.Full Changelog: https://github.com/Shadow53/hoard/compare/v0.3.0...v0.4.0
hoard cleanup
commandFull Changelog: https://github.com/Shadow53/hoard/commits/v0.3.0