You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
typetools []stringfunc (t*tools) BeforeResolve() error {
fmt.Println("Hook")
returnnil
}
typeToolstruct {
Toolstools`arg:"" optional:"" help:"Filename of the tool to get information about. If empty, all tools from the toolbox are listed." type:"existingfile"`//nolint:lll // Struct tags are long.
}
BeforeResolve is only called if an arg is passed to the command. Is there a way to trigger it anyway (without adding a default value)?
The text was updated successfully, but these errors were encountered:
BeforeResolve
is only called if an arg is passed to the command. Is there a way to trigger it anyway (without adding a default value)?The text was updated successfully, but these errors were encountered: