Support for more variables #1063
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What I'd like to do and why
In the documentation, there is a mention of variable interpolation.
It's working great!
I was wondering if it could be possible to add the action variable to be able to write something like:
Thank you!
Other notes / implementation ideas
No response
I'm not necessarily averse to the idea, but with your example in particular it seems like built-in logging is the more appropriate solution. So did you have a more involved use in mind for
{action}or was it only for anecholike this?I went ahead and included the list of configured action names in any log entries for running command hooks. Example:
Just released in borgmatic 2.0.2.
In my use case, it was just for
echo. But if you have included that in the logs, I'll look into that and let you know.One might need to use this to trigger external tools based on the action.
Anyway, feel free to close this issue if you think it's covered by other features.
Okay, I'll close this for now, but I'd be happy to reopen if the existing logging doesn't meet your needs.
Excellent!