Is there a convenience wrapper for nomad cli + vault token?


is there any know script/cli tool that can be used to perform nomad operations from the nomad cli with a NOMAD_TOKEN generated from vault?

What I would wish for is a convenience wrapper that can handle the following workflow:

nomad run ...
-> Token expired
NEW_TOKEN = `vault token create -policy=nomad-user-policy`
NOMAD_TOKEN=$NEW_TOKEN nomad run ...

I can workaround it myself using a bash script and alias etc… but maybe the is already something more sophisticated out there?