Skip to content

Conversation

@zharinov
Copy link
Member

@zharinov zharinov commented Jan 1, 2026

Summary

Restructure CLI from monolithic debug/types commands to focused single-purpose commands:

Old New Purpose
debug -s tree Explore tree-sitter AST
debug -q check Validate query (silent on success)
debug -q --bytecode dump Show compiled bytecode
types infer Generate TypeScript types

Also extracts shared utilities:

  • lang_resolver.rs - Language detection from file extensions
  • query_loader.rs - Query loading from file or inline

Depends on #201 (uses codegen::typescript)

Test plan

  • cargo test -p plotnik-cli passes (14 tests)
  • CI passes

@zharinov zharinov enabled auto-merge (squash) January 1, 2026 15:22
@zharinov zharinov force-pushed the refactor/cli-commands branch from eb9212d to 1ca3aef Compare January 1, 2026 15:23
@zharinov zharinov merged commit a2fc4f9 into master Jan 1, 2026
4 checks passed
@zharinov zharinov deleted the refactor/cli-commands branch January 1, 2026 15:24
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.

2 participants