Commit 2ccb98d
fix(apm): make env filter required for services list command
Changed the --env flag from having a default value to being explicitly
required, as the API requires this parameter and was rejecting requests
even with the default value.
Changes:
- cmd/apm.go: Marked --env flag as required for apm services list
- cmd/apm.go: Added validation to return clear error if env is not provided
- cmd/apm.go: Always add filter[env] parameter (removed conditional check)
- Updated error message to guide users: "--env flag is required (e.g., --env prod)"
This provides clearer feedback to users that the env parameter is mandatory
for listing APM services.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent bb5731c commit 2ccb98d
1 file changed
Lines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
428 | 428 | | |
429 | 429 | | |
430 | 430 | | |
431 | | - | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
432 | 435 | | |
433 | 436 | | |
434 | 437 | | |
| |||
544 | 547 | | |
545 | 548 | | |
546 | 549 | | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
547 | 555 | | |
548 | 556 | | |
549 | 557 | | |
550 | 558 | | |
551 | | - | |
552 | | - | |
553 | | - | |
| 559 | + | |
554 | 560 | | |
555 | 561 | | |
556 | 562 | | |
| |||
0 commit comments