Commit 86424ea
authored
Add version column and filtering to invocation history command (#21)
## PR Description:
### Summary
This PR enhances the `kernel invoke history` command by adding support
for displaying and filtering invocations by version.
### Changes
- Added a "Version" column to the invocation history table output
- Added `--version` flag to filter invocations by version
- Updated kernel-go-sdk dependency from v0.11.4 to v0.11.5
### New Features
1. **Version Column**: The invocation history table now displays the
version of each invocation between the "Action" and "Status" columns
2. **Version Filtering**: Users can now filter invocations by version
using the `--version` flag
### Usage Examples
```bash
# Show all invocations with version column
kernel invoke history
# Filter by version only
kernel invoke history --version v1.2.3
# Filter by app name only
kernel invoke history --app myapp
# Filter by both app name and version
kernel invoke history --app myapp --version v1.2.3
```
### Implementation Details
- Leverages the existing `Version` field from the SDK's
`InvocationListResponse` struct
- Uses the SDK's `Version` filter parameter in `InvocationListParams`
- Maintains backward compatibility with existing usage patterns
- Updates debug messages to reflect active filters
### Dependencies
- Updated `github.com/onkernel/kernel-go-sdk` from v0.11.4 to v0.11.5
<img width="978" height="120" alt="image"
src="https://github.com/user-attachments/assets/4e1aada8-e039-4aff-b535-d61f658ed235"
/>1 parent e796437 commit 86424ea
3 files changed
+20
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
209 | 210 | | |
210 | 211 | | |
211 | 212 | | |
| 213 | + | |
212 | 214 | | |
213 | 215 | | |
214 | 216 | | |
| |||
218 | 220 | | |
219 | 221 | | |
220 | 222 | | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
221 | 234 | | |
| 235 | + | |
| 236 | + | |
222 | 237 | | |
223 | 238 | | |
224 | 239 | | |
| |||
230 | 245 | | |
231 | 246 | | |
232 | 247 | | |
233 | | - | |
| 248 | + | |
234 | 249 | | |
235 | 250 | | |
236 | 251 | | |
| |||
261 | 276 | | |
262 | 277 | | |
263 | 278 | | |
| 279 | + | |
264 | 280 | | |
265 | 281 | | |
266 | 282 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
95 | | - | |
| 94 | + | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
0 commit comments