Skip to content

feat: CLI first successful sync hint message#21175

Merged
kodiakhq[bot] merged 7 commits intomainfrom
feature/eng-1833-cli-first-successful-sync-messaging-lib
Jul 29, 2025
Merged

feat: CLI first successful sync hint message#21175
kodiakhq[bot] merged 7 commits intomainfrom
feature/eng-1833-cli-first-successful-sync-messaging-lib

Conversation

@disq
Copy link
Copy Markdown
Member

@disq disq commented Jul 29, 2025

Uses cloudquery/cloudquery-api-go#307

Shows a hint message on successful (total resources > 0) sync if the source is aws and one of the destinations is postgresql or sqlite. Works only with bearer tokens (cloudquery login).

Loading spec(s) from ./aws_to_sqlite.yaml
Starting sync for: aws (cloudquery/aws@v32.34.0) -> [sqlite (cloudquery/sqlite@v2.11.1)]
Sync completed successfully. Resources: 1337, Errors: 0, Warnings: 0, Time: 3s

🎉 Success!

Run the following command to get your oldest 10 EC2 instances:

sqlite3 ./db.sql "SELECT account_id, instance_id, region, launch_time FROM aws_ec2_instances ORDER BY launch_time ASC LIMIT 10"

@disq disq requested a review from a team as a code owner July 29, 2025 15:22
@disq disq requested a review from murarustefaan July 29, 2025 15:22
@disq disq added the no automerge Block automatic merging label Jul 29, 2025
Copy link
Copy Markdown
Member

@erezrokah erezrokah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 🚀

If we add more query examples I would make it into a declarative embedded YAML that maps source tables + destinations to the example command/query, so we can easily add more examples

fmt.Println()
fmt.Println("Run the following command to get your oldest 10 EC2 instances:")
fmt.Println()
fmt.Println(`sqlite3 db.sql "SELECT account_id, instance_id, region, launch_time FROM aws_ec2_instances ORDER BY launch_time ASC LIMIT 10"`)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we can get the correct file path from the spec? Instead of hard coding db.sql

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added in f63010a

@disq disq added automerge Automatically merge once required checks pass and removed no automerge Block automatic merging labels Jul 29, 2025
@kodiakhq kodiakhq bot merged commit bcf8a63 into main Jul 29, 2025
18 checks passed
@kodiakhq kodiakhq bot deleted the feature/eng-1833-cli-first-successful-sync-messaging-lib branch July 29, 2025 16:10
kodiakhq bot pushed a commit that referenced this pull request Jul 29, 2025
🤖 I have created a release *beep* *boop*
---


## [6.26.0](cli-v6.25.2...cli-v6.26.0) (2025-07-29)


### Features

* CLI first successful sync hint message ([#21175](#21175)) ([bcf8a63](bcf8a63))
* CLI onboarding message updates ([#21168](#21168)) ([ea5cf7b](ea5cf7b))


### Bug Fixes

* **deps:** Update module github.com/cloudquery/plugin-pb-go to v1.26.16 ([#21176](#21176)) ([64068c1](64068c1))
* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.88.1 ([#21164](#21164)) ([7450686](7450686))
* **deps:** Update opentelemetry-collector monorepo ([#21136](#21136)) ([8ca25b1](8ca25b1))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/cli automerge Automatically merge once required checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants