From 5346fa87df78612448c55f9121b2748a23348bc6 Mon Sep 17 00:00:00 2001 From: Esteban Romero Date: Mon, 7 Apr 2025 17:01:59 -0300 Subject: [PATCH 1/2] fix: deprecate --async flag on async-by-default commands --- README.md | 38 +++++++++---------------- command-snapshot.json | 14 +++------ messages/bulkIngest.md | 4 --- messages/data.export.bulk.md | 10 ++----- messages/data.export.resume.md | 2 +- messages/data.import.bulk.md | 8 ++---- messages/data.import.resume.md | 2 +- messages/data.update.bulk.md | 8 ++---- messages/data.update.resume.md | 2 +- messages/soql.query.md | 6 +--- src/bulkIngest.ts | 9 +----- src/commands/data/delete/bulk.ts | 1 - src/commands/data/export/bulk.ts | 7 +---- src/commands/data/import/bulk.ts | 7 ----- src/commands/data/query.ts | 17 ++--------- src/commands/data/update/bulk.ts | 5 ---- src/commands/data/upsert/bulk.ts | 1 - test/commands/data/bulk/results.nut.ts | 2 +- test/commands/data/export/resume.nut.ts | 4 +-- test/commands/data/import/resume.nut.ts | 4 +-- test/commands/data/update/resume.nut.ts | 2 +- 21 files changed, 40 insertions(+), 113 deletions(-) diff --git a/README.md b/README.md index 11c09826..004034ae 100644 --- a/README.md +++ b/README.md @@ -258,11 +258,10 @@ Bulk delete records from an org using a CSV file. Uses Bulk API 2.0. ``` USAGE - $ sf data delete bulk -o -s [--json] [--flags-dir ] [--api-version ] [-w | -a] + $ sf data delete bulk -o -s [--json] [--flags-dir ] [--api-version ] [-w ] (--line-ending CRLF|LF -f ) [--hard-delete] FLAGS - -a, --async Run the command asynchronously. -f, --file= (required) CSV file that contains the IDs of the records to update or delete. -o, --target-org= (required) Username or alias of the target org. Not required if the `target-org` configuration variable is already set. @@ -419,7 +418,7 @@ Bulk export records from an org into a file using a SOQL query. Uses Bulk API 2. ``` USAGE $ sf data export bulk -o --output-file -r csv|json [--json] [--flags-dir ] [--api-version - ] [-w | --async] [-q | --query-file ] [--all-rows] [--column-delimiter + ] [-w ] [-q | --query-file ] [--all-rows] [--column-delimiter BACKQUOTE|CARET|COMMA|PIPE|SEMICOLON|TAB] [--line-ending LF|CRLF] FLAGS @@ -432,7 +431,6 @@ FLAGS --all-rows Include records that have been soft-deleted due to a merge or delete. By default, deleted records are not returned. --api-version= Override the api version used for api requests made by this command - --async Don't wait for the job to complete. --column-delimiter=