Commit 79ce742
committed
feat: add airbox CLI main command structure
Introduces complete airbox CLI application with command routing:
**Main Application:**
- Kong-based CLI framework with dependency injection
- Comprehensive command structure with subcommands
- Factory pattern integration for all dependencies
- Global configuration and authentication management
**Command Structure:**
- config: init (active)
- auth: login, logout, switch-organization (active)
- install: dataplane (active)
- get: dataplane (ready, commented out)
- delete: dataplane (ready, commented out)
**Dependency Injection:**
- HTTP client factory with timeout configuration
- API service factory with authentication
- Helm client factory for chart operations
- K8s cluster factory for Kubernetes operations
- UI provider factory for consistent user interface
**Features:**
- Environment-based configuration
- Proper error handling and exit codes
- Help and version information
- Modular command registration ready for expansion
Foundation for complete airbox CLI functionality with clean
architecture supporting both active and future commands.1 parent e1d6bba commit 79ce742
1 file changed
+47
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
9 | 16 | | |
| 17 | + | |
10 | 18 | | |
11 | | - | |
12 | 19 | | |
13 | 20 | | |
14 | 21 | | |
15 | 22 | | |
16 | | - | |
17 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
18 | 46 | | |
19 | 47 | | |
20 | 48 | | |
21 | | - | |
22 | 49 | | |
23 | | - | |
| 50 | + | |
24 | 51 | | |
25 | 52 | | |
26 | 53 | | |
27 | 54 | | |
28 | | - | |
| 55 | + | |
29 | 56 | | |
30 | 57 | | |
31 | 58 | | |
| |||
36 | 63 | | |
37 | 64 | | |
38 | 65 | | |
39 | | - | |
| 66 | + | |
40 | 67 | | |
41 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
42 | 72 | | |
43 | 73 | | |
44 | 74 | | |
45 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
46 | 85 | | |
47 | 86 | | |
0 commit comments