How jauderho/bl3auto works
Main Components
a. Core Components:
• CLI Interface (cmd/bl3auto.go)
• SHiFT Client (client.go)
• SHiFT API Handler (shift.go)
• Utilities Layer (utils.go)
• Configuration Management (config.json)
• Persistent Storage (codes directory)
b. External Systems:
• Borderlands/SHiFT Authentication Service
• SHiFT Code Redemption API
• Docker Container Runtime (optional deployment)
[User/CLI Layer]
• ↓
[Application Core]
• ↓
[External Services Layer]
Specific Elements
a. User Interaction Flow:
• Command-line interface entry point
• Authentication flow (username/password input)
• Code redemption process
b. Core Application Components:
• Configuration Manager
• SHiFT Client Handler
• Code Redemption Processor
• Storage Manager (for tracking used codes)
c. External Integration Points:
• SHiFT Authentication Endpoint
• Code Redemption API Endpoint
Important Architectural Aspects to Highlight
a. State Management:
• How previously redeemed codes are tracked
• Configuration persistence
b. Authentication Flow:
• Credential handling
• Session management
c. Container Deployment:
• Docker container boundaries
• Volume mounting for persistence
Key Relationships
[CLI Interface] → [Configuration Manager] → [SHiFT Client]
• ↓
[Storage Manager] ← [Code Processor] ← [SHiFT API Handler]
• ↓
• [External SHiFT Services]
Technical Details to Note
• Go-based implementation
• Stateful operation (tracking used codes)
• Cross-platform compatibility
• Docker deployment support