chore: add changeset#5
Conversation
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughThis PR adds a CLI capability to the Pushkin package, enabling users to execute .push files directly from the command line. It introduces a new CLI entry point via package.json, implements the CLI logic in src/cli.ts, updates the build configuration to support dual builds (library and CLI), removes an example file, and documents the changes in a changeset. Changes
Sequence DiagramsequenceDiagram
participant User as User/Terminal
participant CLI as CLI Handler
participant FileSystem as File System
participant Lexer
participant Parser
participant Interpreter
User->>CLI: pushkin script.push
CLI->>FileSystem: Read file
FileSystem-->>CLI: File contents
CLI->>Lexer: Tokenize contents
Lexer-->>CLI: Token stream
CLI->>Parser: Parse tokens
Parser-->>CLI: AST
CLI->>Interpreter: Execute AST
Interpreter-->>CLI: Results
CLI-->>User: Output/Exit code
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Description
Add a CLI that allows running .push files directly via the pushkin command
Type of Change
Changes Made
How to Test
Checklist
bun run build)Related Issues
Closes #
Summary by CodeRabbit
New Features
Chores