-
Notifications
You must be signed in to change notification settings - Fork 8
feat: add MotherDuck support to CLI #124
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
feat: add MotherDuck support to CLI #124
Conversation
Add --mother-duck-token option to create-duckdb command to enable MotherDuck connections. Addresses feedback from PR malloydata#124. Changes: - Add --mother-duck-token flag for MotherDuck API token with MOTHERDUCK_TOKEN environment variable support - Remove -d short option from --database-path to avoid conflict with global --debug flag - Wire motherDuckToken through createDuckDbConnectionCommand - Add comprehensive test coverage for token option (CLI flag, environment variable, and without token) - Update README with MotherDuck documentation emphasizing environment variable usage for security The token is properly wired through from CLI option (or env var) to the connection configuration. Commander.js automatically converts --mother-duck-token to motherDuckToken in the options object, matching the DuckDBConnectionOptions interface. Signed-off-by: James Swirhun <[email protected]>
mtoy-googly-moogly
left a comment
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 didn't look super close, this looks mostly OK.
I know it is a pain, but the documentation plan for the cli is that the docs live on the docs site, not here in this repository, so if you want to add docs that is awesome, you need to add them to the docs site, not here.
|
Thank you! I created malloydata/malloydata.github.io#263 to update official docs on this |
Add --mother-duck-token option to create-duckdb command to enable MotherDuck connections. Addresses feedback from PR malloydata#124. Changes: - Add --mother-duck-token flag for MotherDuck API token with MOTHERDUCK_TOKEN environment variable support - Remove -d short option from --database-path to avoid conflict with global --debug flag - Wire motherDuckToken through createDuckDbConnectionCommand - Add comprehensive test coverage for token option (CLI flag, environment variable, and without token) The token is properly wired through from CLI option (or env var) to the connection configuration. Commander.js automatically converts --mother-duck-token to motherDuckToken in the options object, matching the DuckDBConnectionOptions interface. Signed-off-by: James Swirhun <[email protected]>
6bf46fe to
295cf00
Compare
Add --mother-duck-token option to create-duckdb command to enable MotherDuck connections. Addresses feedback from PR malloydata#124. Changes: - Add --mother-duck-token flag for MotherDuck API token with MOTHERDUCK_TOKEN environment variable support - Remove -d short option from --database-path to avoid conflict with global --debug flag - Wire motherDuckToken through createDuckDbConnectionCommand - Add comprehensive test coverage for token option (CLI flag, environment variable, and without token) The token is properly wired through from CLI option (or env var) to the connection configuration. Commander.js automatically converts --mother-duck-token to motherDuckToken in the options object, matching the DuckDBConnectionOptions interface. Signed-off-by: James Swirhun <[email protected]>
295cf00 to
cdd230b
Compare
Add --mother-duck-token option to create-duckdb command to enable MotherDuck connections. Addresses feedback from PR malloydata#124. Changes: - Add --mother-duck-token flag for MotherDuck API token with MOTHERDUCK_TOKEN environment variable support - Remove -d short option from --database-path to avoid conflict with global --debug flag - Wire motherDuckToken through createDuckDbConnectionCommand - Add comprehensive test coverage for token option (CLI flag, environment variable, and without token) The token is properly wired through from CLI option (or env var) to the connection configuration. Commander.js automatically converts --mother-duck-token to motherDuckToken in the options object, matching the DuckDBConnectionOptions interface. Signed-off-by: James Swirhun <[email protected]>
cdd230b to
8cc97fa
Compare
|
I also removed the README.md edits from this PR |
mtoy-googly-moogly
left a comment
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.
Thanks for the change LGTM
Summary
--database-pathand--mother-duck-tokenoptions to thecreate-duckdbcommand to enable MotherDuck connections-dshort option to avoid conflict with global--debugflagadditionalExtensionsfield to DuckDBConnectionOptions/Config for feature parity with the core libraryUsage
Test plan