feat: Add comprehensive improvements - CLI, error handling, and docs

- Add CLI argument parsing with clap (dry-run, max-concurrent options)
- Replace .env configuration with interactive prompts and TOML config
- Add BaseDirs-based configuration storage in ~/.config/noentropy/
- Improve Gemini API client with configurable model and timeout
- Add concurrent processing with semaphore for rate limiting
- Improve error handling with retry logic and exponential backoff
- Add comprehensive README with installation and usage instructions
- Add config.example.toml template for users
- Update main.rs with better UX and colored output
- Add lib.rs exports for config module
- Refactor error response parsing for cleaner code
- Update API endpoint to use configurable model parameter
- Add proper error type handling in gemini_errors.rs
This commit is contained in:
glitchySid
2025-12-29 00:11:27 +05:30
parent bbf88fc4fc
commit 3cdcd33439
6 changed files with 530 additions and 92 deletions

9
config.example.toml Normal file
View File

@@ -0,0 +1,9 @@
# NoEntropy Configuration File
# Location: ~/.config/noentropy/config.toml
# Your Google Gemini API Key
# Get one at: https://ai.google.dev/
api_key = "your_api_key_here"
# Path to folder to organize (e.g., ~/Downloads)
download_folder = "/path/to/your/downloads"