Description
Rewrite openvar.py to import nothing heavy at module level. All task imports happen inside command callbacks (lazy).
Files
openvariant/commands/openvar.py — REWRITE
Definition of Done
Documentation needed: No CLI interface changes — no doc updates needed.
Tests needed:
- E2E test:
subprocess.run(["openvar", "count", ...]) returns correct output on fixture data
Description
Rewrite
openvar.pyto import nothing heavy at module level. All task imports happen inside command callbacks (lazy).Files
openvariant/commands/openvar.py— REWRITEDefinition of Done
openvar --helpworks without triggering Rust extension loadopenvar cat,openvar count,openvar groupbyall work end-to-endDocumentation needed: No CLI interface changes — no doc updates needed.
Tests needed:
subprocess.run(["openvar", "count", ...])returns correct output on fixture data