Commit 05d8097
fix: improve input validation and error handling in managed CLI
- Filter empty package strings and validate non-empty package list
- Add case-insensitive networking type validation
- Move client creation after validation to avoid unnecessary API calls
- Add trailing newline to test file (PEP 8)
Addresses feedback from CodeRabbit, Gemini, and Copilot reviewers.
Co-authored-by: Mervin Praison <MervinPraison@users.noreply.github.com>1 parent d36aae5 commit 05d8097
File tree
2 files changed
+11
-5
lines changed- src/praisonai
- praisonai/cli/commands
- tests/unit/cli
2 files changed
+11
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
505 | 505 | | |
506 | 506 | | |
507 | 507 | | |
508 | | - | |
509 | 508 | | |
510 | 509 | | |
511 | 510 | | |
512 | | - | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
513 | 515 | | |
514 | 516 | | |
515 | 517 | | |
516 | | - | |
| 518 | + | |
| 519 | + | |
517 | 520 | | |
518 | 521 | | |
519 | | - | |
| 522 | + | |
520 | 523 | | |
521 | 524 | | |
522 | 525 | | |
523 | 526 | | |
524 | 527 | | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
525 | 531 | | |
526 | 532 | | |
527 | 533 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
329 | | - | |
| 329 | + | |
0 commit comments