Commit e90f76a
committed
feat(search): add cpu subcommand and wide mode to brev search
Restructure `brev search` into gpu/cpu subcommands:
- `brev search` / `brev search gpu` - GPU instances (default, backwards compatible)
- `brev search gpu --wide` - GPU instances with RAM and ARCH columns
- `brev search cpu` - CPU-only instances via ?include_cpu=true API param
CPU search has dedicated columns (TYPE, PROVIDER, VCPUs, RAM, ARCH, DISK,
$/GB/MO, BOOT, FEATURES, $/HR) and filters (--min-ram, --arch).
Shared filters (--provider, --min-vcpu, --min-disk, --max-boot-time,
--stoppable, --rebootable, --flex-ports, --sort) work across both modes.
Piping into `brev create` works for both GPU and CPU table output.1 parent 6aece4f commit e90f76a
5 files changed
Lines changed: 559 additions & 144 deletions
File tree
- pkg
- cmd
- gpucreate
- gpusearch
- store
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
295 | | - | |
| 295 | + | |
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
| |||
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
318 | | - | |
| 318 | + | |
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
| |||
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
352 | | - | |
| 352 | + | |
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| |||
355 | 355 | | |
356 | 356 | | |
357 | 357 | | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
358 | 380 | | |
359 | 381 | | |
360 | 382 | | |
| |||
0 commit comments