checkly-cli
checkly-cli copied to clipboard
feat: adds mini preview on each deploy
trafficstars
I hereby confirm that I followed the code guidelines found at engineering guidelines
Affected Components
- [x] CLI
- [ ] Create CLI
- [ ] Test
- [ ] Docs
- [ ] Examples
- [ ] Other
Notes for the Reviewer
- Adds a small, extra preview to each
deploycommand. - Refactors the preview fetching to a dedicated method and adds a type. Adds a counter and aligns indentation.
- Reshuffles some copy and format on the full
--previewcommand
Examples
Mini preview example
timnolet@MacBook-Pro-van-Tim beige-gazelle % npx checkly deploy
Parsing your project... done
Deploy preview:
- 1 to create, 0 to delete
For a full preview, run: npx checkly deploy --preview
? You are about to deploy your project "Acme webapp" to account "Acme Production". Do you want to continue? › (y/N)
Full preview example:
timnolet@MacBook-Pro-van-Tim beige-gazelle % npx checkly deploy --preview
Parsing your project... done
Creating (1):
ApiCheck: checkly-api-123
Updating or leaving unchanged (4):
BrowserCheck: __checks__/docs.spec.ts
ApiCheck: checkly-api-1
ApiCheck: checkly-api-2
BrowserCheck: checkly-homepage
Skipping because of testOnly (1):
ApiCheck: checkly-api-12