First: thanks for this awesome tool helping to easily deploy restic!
I just tried to use .Stdout in the body-template of a send-* action as described in the docs (using resticprofile in version 0.23.0). But it seems to always be empty, regardless of error state and output of before running commands.
Am I doing something wrong? Do you need to set some undocumented setting for it to work?
Despite not being familiar with Go I tried to find the place where this variable is set, but could not find it. I found the definition of the struct at
but despite extensive search could not find any place populating this struct value. Is it possible that it was forgotten to populate it in
#114? I find only two occurences of
Stdout in the diff of this PR and one is the docs, the other the above mentioned definition.
First: thanks for this awesome tool helping to easily deploy restic!
I just tried to use
.Stdoutin thebody-templateof asend-*action as described in the docs (usingresticprofilein version 0.23.0). But it seems to always be empty, regardless of error state and output of before running commands.Am I doing something wrong? Do you need to set some undocumented setting for it to work?
Despite not being familiar with Go I tried to find the place where this variable is set, but could not find it. I found the definition of the struct at
resticprofile/monitor/hook/context.go
Line 10 in 61f6015
Stdoutin the diff of this PR and one is the docs, the other the above mentioned definition.