Skip to content

Commit de17a83

Browse files
committed
fix: typos, grammar errors, and incorrect import resume stage title
- record.update.md: "specifiyng" → "specifying" - tree.import.md: "more then" → "more than" - bulk.status.md, data.resume.md: "a specific batches" → "a specific batch" - importApi.md: remove trailing backtick artifact from error message - bulk.upsert.md: add missing <%= command.id %> in first example - bulkIngest.ts: remove stray ".1" in deprecation comment - bulkUtils.ts: rename `columDelimiter` → `columnDelimiter` - update/record.ts: "smart of enough" → "smart enough" - import/resume.ts: fix stageTitle from "Updating data" to "Importing data" (every other resume command matches its bulk counterpart) - importFiles.ts: fix unclosed backtick in JSDoc comment
1 parent 4404982 commit de17a83

11 files changed

Lines changed: 13 additions & 13 deletions

File tree

messages/bulk.status.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Run this command using the job ID or batch ID returned from the "<%= config.bin
1212

1313
<%= config.bin %> <%= command.id %> --job-id 750xx000000005sAAA
1414

15-
- View the status of a bulk load job and a specific batches in an org with alias my-scratch:
15+
- View the status of a bulk load job and a specific batch in an org with alias my-scratch:
1616

1717
<%= config.bin %> <%= command.id %> --job-id 750xx000000005sAAA --batch-id 751xx000000005nAAA --target-org my-scratch
1818

messages/bulk.upsert.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ By default, the job runs the batches in parallel, which we recommend. You can ru
1616

1717
- Bulk upsert records to the Contact object in your default org:
1818

19-
<%= config.bin %> --sobject Contact --file files/contacts.csv --external-id Id
19+
<%= config.bin %> <%= command.id %> --sobject Contact --file files/contacts.csv --external-id Id
2020

2121
- Bulk upsert records to a custom object in an org with alias my-scratch and wait 5 minutes for the command to complete:
2222

messages/data.resume.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Run this command using the job ID or batch ID returned from the "<%= config.bin
1212

1313
<%= config.bin %> <%= command.id %> --job-id 750xx000000005sAAA
1414

15-
- View the status of a bulk load job and a specific batches:
15+
- View the status of a bulk load job and a specific batch:
1616

1717
<%= config.bin %> <%= command.id %> --job-id 750xx000000005sAAA --batch-id 751xx000000005nAAA
1818

messages/importApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ There are references in a data file %s that can't be resolved:
3434

3535
# error.RefsInFiles
3636

37-
The file %s includes references (ex: '@AccountRef1'). Those are only supported with --plan, not --files.`
37+
The file %s includes references (ex: '@AccountRef1'). Those are only supported with --plan, not --files.
3838

3939
# error.noRecordTypeName
4040

messages/record.update.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Updates a single record of a Salesforce or Tooling API object.
66

77
Specify the record you want to update with either its ID or with a list of field-value pairs that identify the record. If your list of fields identifies more than one record, the update fails; the error displays how many records were found.
88

9-
When using field-value pairs for both identifying the record and specifiyng the new field values, use the format <fieldName>=<value>. Enclose all field-value pairs in one set of double quotation marks, delimited by spaces. Enclose values that contain spaces in single quotes.
9+
When using field-value pairs for both identifying the record and specifying the new field values, use the format <fieldName>=<value>. Enclose all field-value pairs in one set of double quotation marks, delimited by spaces. Enclose values that contain spaces in single quotes.
1010

1111
This command updates a record in Salesforce objects by default. Use the --use-tooling-api flag to update a Tooling API object.
1212

messages/tree.import.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Plan definition file to insert multiple data files.
2222

2323
# flags.plan.description
2424

25-
Unlike when you use the `--files` flag, the files listed in the plan definition file **can** contain more then 200 records. When the CLI executes the import, it automatically batches the records to comply with the 200 record limit set by the API.
25+
Unlike when you use the `--files` flag, the files listed in the plan definition file **can** contain more than 200 records. When the CLI executes the import, it automatically batches the records to comply with the 200 record limit set by the API.
2626

2727
The order in which you list the files in the plan definition file matters. Specifically, records with lookups to records in another file should be listed AFTER that file. For example, let's say you're loading Account and Contact records, and the contacts have references to those accounts. Be sure you list the Accounts file before the Contacts file.
2828

src/api/data/tree/importFiles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const logFileInfo =
7474
return fileInfo;
7575
};
7676

77-
/** check the tree files for references, throw error telling user they are only supported with `--plan */
77+
/** check the tree files for references, throw error telling user they are only supported with `--plan` */
7878
export const validateNoRefs = (fileInfo: FileInfo): FileInfo => {
7979
if (hasUnresolvedRefs(fileInfo.records)) {
8080
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);

src/bulkIngest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ export const lineEndingFlag = Flags.option({
365365
})();
366366

367367
/**
368-
* Use only for commands that maintain sfdx compatibility.1
368+
* Use only for commands that maintain sfdx compatibility.
369369
*
370370
* @deprecated
371371
*/

src/bulkUtils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,11 +324,11 @@ export async function detectDelimiter(filePath: string): Promise<ColumnDelimiter
324324
}
325325

326326
// default to `COMMA` if no delimiter was found in the CSV file (1 column)
327-
const columDelimiter = delimiterMap.get(detectedDelimiter ?? ',');
327+
const columnDelimiter = delimiterMap.get(detectedDelimiter ?? ',');
328328

329-
if (columDelimiter === undefined) {
329+
if (columnDelimiter === undefined) {
330330
throw new SfError(`Failed to detect column delimiter used in ${filePath}.`);
331331
}
332332

333-
return columDelimiter;
333+
return columnDelimiter;
334334
}

src/commands/data/import/resume.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export default class DataImportResume extends SfCommand<DataImportResumeResult>
5959

6060
return bulkIngestResume({
6161
cmdId: 'data import resume',
62-
stageTitle: 'Updating data',
62+
stageTitle: 'Importing data',
6363
cache: await BulkImportRequestCache.create(),
6464
jobIdOrMostRecent: flags['job-id'] ?? flags['use-most-recent'],
6565
jsonEnabled: this.jsonEnabled(),

0 commit comments

Comments
 (0)