-
Notifications
You must be signed in to change notification settings - Fork 70
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
Support reading api-key from vault command #150
Conversation
plugin/wakatime.vim
Outdated
@@ -6,7 +6,7 @@ | |||
" Website: https://wakatime.com/ | |||
" ============================================================================ | |||
|
|||
let s:VERSION = '9.0.1' | |||
let s:VERSION = '9.1.0' |
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.
Let's not mix version bumps with code changes.
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.
I did it to test locally and forgot to rollback :(
plugin/wakatime.vim
Outdated
|
||
if !found_api_key | ||
let vault_cmd = s:GetIniSetting('settings', 'api_key_vault_cmd') | ||
if vault_cmd != '' |
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.
if !empty(vault_cmd)
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.
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.
Is there a guideline to use empty
function? There are other lines of code that's not using it, like
if s:GetIniSetting('settings', 'api_key') != '' || s:GetIniSetting('settings', 'apikey') != ''
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.
That's just legacy code, we can change it to also use empty
later.
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.
Just remove the version bump and it's good to merge.
b76e20c
to
8db1787
Compare
This PR makes vim to also read from vault command if present.
wakatime/wakatime-cli#783 (comment)