Closed markkuhn closed 2 weeks ago
The changes include modifications to the run
method in cmd/cli/job/list.go
, enhancing the user message related to the NextToken
feature by providing clearer, multi-line instructions. The logic for API response handling and error formatting remains unchanged. Additionally, cmd/cli/job/list_test.go
introduces a new integration test suite for job listings, utilizing the testify
library to structure tests. This suite includes tests for job listing and limits, with a new helper function for JSON output extraction.
File | Change Summary |
---|---|
cmd/cli/job/list.go | Updated user message for NextToken to a multi-line format for clarity. Logic remains unchanged. |
cmd/cli/job/list_test.go | Introduced ListSuite for testing job listings, added methods for setup and tests, and a helper function for JSON extraction. |
🐇 In the land of code, where bunnies hop,
New messages bloom, making confusion stop.
Tests now dance, with structure and flair,
Job listings clearer, with love and care.
Hooray for the changes, let’s give a cheer,
For a smoother command line, let’s all persevere! 🎉
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Nice . I added few comments to the code.
Also, for the issue you referenced, it mentions
bacalhau node list
, did you intentionally skip that ?
Skipped it for now as it seems bacalhau node list
doesn't paginate yet so it will need more work.
Issue: https://github.com/bacalhau-project/bacalhau/issues/4507
Changes
This PR changes the message shown to users when
bacalhau job list
is run and a next token is returned. It now includes the full command to run.Previous response:
New response:
Testing
make test-all
make build-dev
with changes and tested manuallySummary by CodeRabbit
New Features
--next-token
flag in the command-line interface.Tests