Closed mrjones2014 closed 1 year ago
Thanks for the PR!
Although in your specific use case it makes sense for get_env
to be a function, I would expect most users would suffice to use a table. Can you make the following changes?
get_env
to gh_env
gh_env
config optionDone!
Awesome, thanks!
Describe what this PR does / why we need it
Adds a hook to get computed environment variables when running the GitHub CLI. It is needed, for example, to allow you to set
GITHUB_TOKEN
from the 1Password CLI.Does this pull request fix one issue?
Fixes #345
Describe how you did it
Added a config option that allows user to pass a function that returns a table to merge with
env_vars
Describe how to verify it
This config should authenticate the GitHub CLI via octo.nvim
Special notes for reviews
Here's how I've configured mine, integrating with the
op.nvim
plugin, using its API: