Hello all!
Minor update today, with, I think, some good features! I will try to explain it simply 😉
Clean-Restic
We start with the small one.
A useful modification is that now you can use the parameter SnapshotToKeep
with a value equal to 0! Before, when you set at 0, the script use the default value. But, sometime we need to remove all snapshots, even more so when using the TagFilter parameter.
A visual enhancement, now you have a progress bar instead of a new line of message showing that the snapshot has been removed or not. I keep the error message only.
The TagFilter
parameter was badly used and ignore all snapshots. But, the worst bug was the functions that show message, was not properly used, and block the script completely!
Get-ResticGameSnapshots
You can type 'q' to quit the script before choosing a game! Sometimes I just want to see how many snapshots have my games! But, by the way, I added the parameter CountOnly
to only show game list with number of snapshots!
I add the parameter Game "Game Name"
to not have to choose in the script. But, you have to write the game name correctly.
Miscellaneous
I update some local message to be better. obviously, I added some new message with the new features!
Environment to use restic manually
The best update of this release 😄 !
In the previous update, I told you you can import modules settings and restic, set the settings variable, and the environment with the settings variable. After, you will have to remove environment before removing modules.
It's over!
Now, you just have to import the module restic this way:
Import-Module -Name "C:\path\to\inc\modules\Tjvs.Restic"
Automatically, the Settings module will be imported, the settings variable will be created and the environment set! And, when you have done, you can just remove the module Restic, and the environment will be removed automatically for security purpose, as the password and the path to the repo are stored in the environment var. I don't remove the module settings automatically, I was thinking about it, but it's not importe right now.
That's all for today! I hope these enhancements enjoyed you!
You can see some of these change with animated gif:
Feel free to create new issues if you want new features or you have a bug! Don't forget to attached your log file for bug.
Log
Only relevant commit
- 4e53345 - feat(Clean-Restic): You can remove all snapshots
- 4b10aa7 - chore(settings): Better translation for stats parameter
- 6edc7b4 - chore: add local accordingly to new feature for commit 2fdcc3d
- 2fdcc3d - feat(Get-ResticGameSnapshots): able to quit at game choice
- 291187c - chore: better local message for english message
- b6e4796 - chore(Tjvs.Settings): add creation of settings var
- d71a1d0 - feat(Clean-Restic): visual update for the remove steps. Easier to understand and less useless messages
- 8e78af6 - feat(Tjvs.Restic): add Tjvs.Settings modules as required
- b107912 - feat(Tjvs.Restic): Set-Environment call when module is imported. Call Remove-Environment when module is removed
- f867394 - feat(Get-ResticGameSnapshots): add parameters CountOnly and Game.
What's Changed
- Release v2.1 by @Chucky2401 in #3
Full Changelog: v2.0...v2.1