How edmondfrank/gitee_cli works
Main Components Identification
a) Core Components:
• CLI Interface Layer (lib/gitee_cli.ex)
• API Client Layer (lib/gitee_cat/)
• Command Modules
• Authentication System
• LLM Integration
[User Terminal] → [CLI Interface Layer]
• ↓
[Command Modules] ← → [Authentication System]
• ↓
• [API Client Layer] → [Gitee API]
• ↓
• [LLM Integration]
Component Details
a) CLI Interface Layer:
• Main entry point (lib/gitee_cli.ex)
• To command modules:
• Enterprises
• Pulls
• Issues
• Attach Files
• Auth
• LLM
b) API Client Layer (GiteeCat):
• Separate modules for different API endpoints:
• Users
• Enterprises
• Issues
• Pulls
• Attach Files
c) Authentication System:
• Both authentication methods:
• Access Token
• Cookie-based auth
Important Relationships to Highlight
• Bidirectional flow between CLI and API client
• Authentication flow
• Demonstrate how commands interact with the API client
• LLM integration points
Specific Implementation Details
• The modular structure of commands (enterprises, pulls, issues)
• The separation between CLI logic (gitee_cli/) and API client (gitee_cat/)
• The authentication flow supporting both token and cookie-based auth
• The LLM integration capability