mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-30 18:17:55 +00:00
Add RunCustom command to allow passing in a TokenHelper
This commit is contained in:
@@ -114,6 +114,11 @@ func (c *BaseCommand) Client() (*api.Client, error) {
|
||||
return client, nil
|
||||
}
|
||||
|
||||
// SetTokenHelper sets the token helper on the command.
|
||||
func (c *BaseCommand) SetTokenHelper(th token.TokenHelper) {
|
||||
c.tokenHelper = th
|
||||
}
|
||||
|
||||
// TokenHelper returns the token helper attached to the command.
|
||||
func (c *BaseCommand) TokenHelper() (token.TokenHelper, error) {
|
||||
if c.tokenHelper != nil {
|
||||
|
||||
Reference in New Issue
Block a user