Commit Graph

3 Commits

Author SHA1 Message Date
synapz-org
8cfe427b15 fix: improve test assertion robustness in test_cli_with_cookies 2025-10-26 09:54:34 -04:00
synapz-org
8d21d4ea0a test: add CLI error cases and cookies option tests
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-26 09:51:57 -04:00
synapz-org
b74cc323d1 feat: add CLI main module with Click integration
Implemented the CLI entry point using Click framework. The CLI:
- Accepts Space URL as an argument
- Supports --cookies and --output options
- Validates URLs using the validator module
- Downloads Spaces using the downloader module
- Provides clear success and error messages
- Uses proper exit codes (0=success, 1=validation error, 2=download error)

Test uses Click's CliRunner to test CLI without running actual downloads.
Mocks validate_space_url and download_space functions for isolated testing.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-26 09:47:35 -04:00