-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add an add command #87
Conversation
9e4a1ed
to
5680201
Compare
import ( | ||
"fmt" | ||
|
||
"github.com/fishi0x01/vsh/client" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CodeClimate complains that this import is redundant.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I'm not sure what it's on about there. It doesn't compile without it as client is used in the file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting 🤔
Once you merge #88 and rebase, it will evaluate again. Lets see what it says then. If it fails again, I will take a look
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok. Still failing. I will have a look 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Im not exactly sure what the issue here is. It seems to me that codeclimate uses a govet wrapper https://github.com/codeclimate-community/codeclimate-govet
Might be this is a bug. Running go vet .
locally doesn't show any errors. I've marked the issue in CodeClimate as invalid
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job! 👍
this command is basically
vault kv patch
but it's nice to have insidevsh 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.