Open nr-dbuckwalter opened 10 months ago
⚠️ This PR contains unsigned commits. To get your PR merged, please sign those commits (git commit -S --amend --no-edit
) and force push them to this branch (git push --force-with-lease
).
If you're new to commit signing, there are different ways to set it up:
gpg
ssh-agent
Added my GPG key to Github -- commits are signed
Any chance to get this approved and released ? The plugin is otherwise broken for all but the simplest usecases.
@AndyTitu can you help with getting a second approver? Any chance you could add a CODEOWNERS
or some other mechanism to help find the right reviewers in the future?
Any maintainers able to merge to get this officially into next 1password-cli release ?
@SimonBarendse this seems ready to go. Can you provide guidance if there are any steps missing?
@mrjones2014 I see you are a recent committer/merger -- can you approve and merge this please?
Overview
The
mysql
CLI depends on the--defaults-file=foo
argument being the very first argument. This change provides a new 'PrependArgs' method and uses it for themysql
plugin.From the
mysql
CLI help text:Type of change
Related Issue(s)
How To Test
Build the plugin locally and run
op plugin run mysql -- --host=foo
using a credential with nohost
field. Before this PR, it results in the error:mysql: [ERROR] unknown variable 'defaults-file=...
because the MySQL treats unknown arguments in the form--variable-name=foo
as MySQL configuration variable. After the PR, additional command-line arguments are appended after--defaults-file
that is injected by themysql
plugin.Changelog
mysql
CLI depends on the--defaults-file=foo
argument being the very first argument