Commit 718983a
authored
feat(cli): add CLI interface with start and validate commands (#34)
* feat(cli): add CLI interface with start and validate commands
Add a new command-line interface to improve user experience and provide better
server management capabilities. This change includes:
- Add new CLI module using Click framework
- Implement 'start' command with configurable host, port, and responses file
- Add 'validate' command to check responses.yml structure
- Update config to support environment variable for responses file path
- Update README with comprehensive CLI documentation
- Add CLI entry point in pyproject.toml
The CLI now supports:
- mockllm start [--responses FILE] [--host HOST] [--port PORT] [--reload]
- mockllm validate <responses_file>
- mockllm --version
- mockllm --help
Bump version for pypi publish
Breaking Changes: None
Dependencies Added: click>=8.1.0
* Add CLI capability1 parent e0e59ef commit 718983a
File tree
5 files changed
+183
-19
lines changed- src/mockllm
5 files changed
+183
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | 63 | | |
65 | 64 | | |
66 | 65 | | |
| |||
91 | 90 | | |
92 | 91 | | |
93 | 92 | | |
94 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
95 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
96 | 120 | | |
97 | 121 | | |
98 | 122 | | |
99 | 123 | | |
100 | | - | |
| 124 | + | |
101 | 125 | | |
102 | | - | |
| 126 | + | |
103 | 127 | | |
104 | | - | |
| 128 | + | |
| 129 | + | |
105 | 130 | | |
106 | | - | |
| 131 | + | |
107 | 132 | | |
108 | 133 | | |
109 | | - | |
| 134 | + | |
110 | 135 | | |
111 | | - | |
| 136 | + | |
112 | 137 | | |
113 | | - | |
| 138 | + | |
114 | 139 | | |
115 | 140 | | |
116 | 141 | | |
| |||
137 | 162 | | |
138 | 163 | | |
139 | 164 | | |
140 | | - | |
| 165 | + | |
141 | 166 | | |
142 | 167 | | |
143 | 168 | | |
| |||
0 commit comments