fishi0x01 / vsh

vsh - HashiCorp Vault interactive shell and cli tool
MIT License
284 stars 12 forks source link

add an add command #87

Closed mattlqx closed 3 years ago

mattlqx commented 3 years ago

this command is basically vault kv patch but it's nice to have inside vsh when in interactive mode. you can simply add a key/value to a path. this can save you time if you're doing other operations inside vsh.

i was also able to eliminate another duplication when creating new commands by making fetching the Command object from the Commands struct dynamic.