You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: update CLI to use commander for argument parsing and enhance documentation
- Replaced `yargs` with `commander` for CLI argument parsing.
- Updated `.clinerules` to reflect new dependencies and CLI options.
- Modified `package.json` to include `commander` as a runtime dependency.
- Enhanced README with updated CLI usage instructions and examples.
- Refactored `src/cli.ts` to implement new command structure and validation.
- Added new tests for CLI functionality and conversion logic.
- Updated `build.config.ts` to include `src/cli` entry point.
* **CI/CD:** GitHub Actions for lint, test, publish. (To be implemented)
28
+
* **CLI Argument Parsing:** Use `commander` options (`-i`, `-o`, `-d`) exclusively for file/directory paths. Positional arguments for paths are not supported.
28
29
29
30
## 3. Tool Usage Patterns (for Cline)
30
31
@@ -51,11 +52,12 @@ This file captures project-specific intelligence, patterns, user preferences, an
51
52
* **Windows CMD Quirks:** Excluded from MVP, but potential future complexity. Focus on PowerShell for Windows.
52
53
* **Future Schema Changes:** Plan for extensibility/warnings for future rule schema updates (v1.2).
53
54
* **Complex Glob Patterns:** Document Windsurf's constraints; may need fallback for very complex cases.
54
-
* **Dependency Discrepancy:** PRD's "zero runtime deps" vs. `fast-glob` for directory mode. Acknowledged that `fast-glob` is a necessary runtime dep for full CLI functionality.
55
+
* **Dependency Discrepancy:** PRD's "zero runtime deps" vs. `commander` (for CLI parsing) and `fast-glob` (for directory mode). Acknowledged that these are necessary runtime dependencies for full CLI functionality.
55
56
56
57
## 6. Evolution of Project Decisions
57
58
58
59
* (To be populated as decisions are made or changed throughout the project lifecycle)
60
+
* **8 May 2025:** Refactored CLI (`src/cli.ts`) to remove positional file arguments and rely more on `commander` options and validation (`.conflicts()`). Custom validation retained for `-d` requiring `-o`.
59
61
60
62
---
61
63
This file will be updated iteratively as the project progresses.
@@ -141,7 +161,7 @@ See [API docs](docs/API.md) for full typings.
141
161
"name":"cursor-windsurf-convert",
142
162
"version":"1.0.0",
143
163
"bin": {
144
-
"cuws":"dist/cli.js"// or ./cli.js if TS-to-ES buildless
164
+
"cuws":"dist/cli.mjs"
145
165
},
146
166
...
147
167
}
@@ -153,17 +173,14 @@ The CLI file **must** start with `#!/usr/bin/env node` and be `chmod +x`.
153
173
154
174
## 🤝 Contributing
155
175
156
-
PRs welcome! Check the [open issues](https://github.com/YOUR_ORG/cursor-windsurf-convert/issues) or open a new one. Please read our [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md)first.
176
+
PRs welcome! Check the [open issues](https://github.com/gmickel/cursor-windsurf-convert/issues) or open a new one. Also see [CONTRIBUTING.md](CONTRIBUTING.md)for details.
157
177
158
178
---
159
179
160
180
## 🏄 Roadmap
161
181
162
182
*[x] One‑file conversion
163
183
*[x] Directory batch mode
164
-
*[ ] Legacy `.cursorrules` support
165
-
*[ ] JSON schema validation
166
-
*[ ] Native Rust port 🚀
167
184
168
185
---
169
186
@@ -172,7 +189,6 @@ PRs welcome! Check the [open issues](https://github.com/YOUR_ORG/cursor-windsurf
0 commit comments