Skip to content

Commit

Permalink
add dryRun argument
Browse files Browse the repository at this point in the history
  • Loading branch information
abrantesarthur committed Jan 14, 2025
1 parent da299c3 commit 799e41c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 120 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,7 @@ To learn how to generate the token, see the [OAuth 2.0 Scopes](https://developer
| fileFormat | The format of the output file. | string | csv | false |
| resource | The resource to pull from OneTrust. For now, only assessments is supported. | string | assessments | false |
| debug | Whether to print detailed logs in case of error. | boolean | false | false |
| dryRun | Whether to export the resource to a file rather than sync to Transcend. | boolean | false | false |

#### Usage

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"tr-pull-consent-metrics": "./build/cli-pull-consent-metrics.js",
"tr-pull-consent-preferences": "./build/cli-pull-consent-preferences.js",
"tr-pull-datapoints": "./build/cli-pull-datapoints.js",
"tr-sync-ot": "./build/cli-sync-ot.js",
"tr-push": "./build/cli-push.js",
"tr-request-approve": "./build/cli-request-approve.js",
"tr-request-cancel": "./build/cli-request-cancel.js",
Expand All @@ -42,6 +41,7 @@
"tr-retry-request-data-silos": "./build/cli-retry-request-data-silos.js",
"tr-scan-packages": "./build/cli-scan-packages.js",
"tr-skip-request-data-silos": "./build/cli-skip-request-data-silos.js",
"tr-sync-ot": "./build/cli-sync-ot.js",
"tr-update-consent-manager": "./build/cli-update-consent-manager-to-latest.js",
"tr-upload-consent-preferences": "./build/cli-upload-consent-preferences.js",
"tr-upload-cookies-from-csv": "./build/cli-upload-cookies-from-csv.js",
Expand Down
4 changes: 2 additions & 2 deletions src/cli-sync-ot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
getListOfOneTrustAssessments,
getOneTrustAssessment,
writeOneTrustAssessment,
parseCliPullOtArguments,
parseCliSyncOtArguments,
createOneTrustGotInstance,
getOneTrustRisk,
} from './oneTrust';
Expand All @@ -29,7 +29,7 @@ import {
*/
async function main(): Promise<void> {
const { file, fileFormat, hostname, auth, resource } =
parseCliPullOtArguments();
parseCliSyncOtArguments();

// try {
// TODO: move to helper function
Expand Down
2 changes: 1 addition & 1 deletion src/oneTrust/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export * from './createOneTrustGotInstance';

Check failure on line 1 in src/oneTrust/index.ts

View workflow job for this annotation

GitHub Actions / build-and-upload-artifacts

Cannot find module './parseCliSyncOtArguments' or its corresponding type declarations.
export * from './getOneTrustAssessment';
export * from './writeOneTrustAssessment';
export * from './parseCliPullOtArguments';
export * from './parseCliSyncOtArguments';
export * from './getListOfOneTrustAssessments';
export * from './getOneTrustRisk';
115 changes: 0 additions & 115 deletions src/oneTrust/parseCliPullOtArguments.ts

This file was deleted.

2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,6 @@ __metadata:
tr-pull-consent-metrics: ./build/cli-pull-consent-metrics.js
tr-pull-consent-preferences: ./build/cli-pull-consent-preferences.js
tr-pull-datapoints: ./build/cli-pull-datapoints.js
tr-pull-ot: ./build/cli-pull-ot.js
tr-push: ./build/cli-push.js
tr-request-approve: ./build/cli-request-approve.js
tr-request-cancel: ./build/cli-request-cancel.js
Expand All @@ -607,6 +606,7 @@ __metadata:
tr-retry-request-data-silos: ./build/cli-retry-request-data-silos.js
tr-scan-packages: ./build/cli-scan-packages.js
tr-skip-request-data-silos: ./build/cli-skip-request-data-silos.js
tr-sync-ot: ./build/cli-sync-ot.js
tr-update-consent-manager: ./build/cli-update-consent-manager-to-latest.js
tr-upload-consent-preferences: ./build/cli-upload-consent-preferences.js
tr-upload-cookies-from-csv: ./build/cli-upload-cookies-from-csv.js
Expand Down

0 comments on commit 799e41c

Please sign in to comment.