feat(cli): add cobra-based CLI with subcommands

Replace simple argument parsing with cobra to provide better CLI experience:

- Add 'execute' subcommand for running TypeScript files
- Add 'types' subcommand for printing TypeScript type declarations
- Add help text and error handling
- Update documentation with new usage examples

Add dependencies: github.com/spf13/cobra, github.com/spf13/pflag
This commit is contained in:
2026-01-29 20:07:35 -05:00
parent ccbe9cd7bf
commit 23730868b8
5 changed files with 73 additions and 25 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.opencode