Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tooling): simplify dryrun command (#90)
## Describe your changes If an .env file is added with these contents: ``` NANGO_SECRET_KEY_DEV=aaa-aaa-aaa NANGO_HOSTPORT=https://api.nango.dev ``` You can now just run ``` npm run dryrun -- datadog users d ``` The pattern above being `dryrun $INTEGRATION $SCRIPT_NAME $CONNECTION_NAME` Instead of ``` bash scripts/run-integration-template.bash KEY=aaa-aaa-aaa HOST=https://api.nango.dev datadog dryrun users d ``` Note that this is backwards compatible ## Issue ticket number and link ## Checklist before requesting a review (skip if just adding/editing APIs & templates) - [ ] I added tests, otherwise the reason is: - [ ] External API requests have `retries` - [ ] Pagination is used where appropriate - [ ] The built in `nango.paginate` call is used instead of a `while (true)` loop - [ ] Third party requests are NOT parallelized (this can cause issues with rate limits) - [ ] If a sync requires metadata the `nango.yaml` has `auto_start: false` - [ ] If the sync is a `full` sync then `track_deletes: true` is set
- Loading branch information