Skip to content

✨ feat(cli): add -m option to import modules with namespace prefix#1505

Merged
harehare merged 3 commits intomainfrom
feat/cli-import-module-option
Mar 27, 2026
Merged

✨ feat(cli): add -m option to import modules with namespace prefix#1505
harehare merged 3 commits intomainfrom
feat/cli-import-module-option

Conversation

@harehare
Copy link
Copy Markdown
Owner

Add -m / --import-module-names flag that calls engine.import_module() to make module functions available as module::fn() in queries.

Add `-m` / `--import-module-names` flag that calls `engine.import_module()`
to make module functions available as `module::fn()` in queries.

Refactor `import_module_with_env` out of `eval_import` to support
reuse from the engine layer. Also move `section` module import for
`--aggregate` from query string prepend to `engine.import_module()`.
@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Mar 27, 2026

Merging this PR will not alter performance

✅ 29 untouched benchmarks


Comparing feat/cli-import-module-option (a62f541) with main (71573f2)1

Open in CodSpeed

Footnotes

  1. No successful run was found on main (6e7bcb8) during the generation of this report, so 71573f2 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@harehare harehare merged commit 147d2fb into main Mar 27, 2026
6 checks passed
@harehare harehare deleted the feat/cli-import-module-option branch March 27, 2026 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant