Skip to content

Commit cce5d03

Browse files
committed
improve status command output
1 parent 1afc16c commit cce5d03

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

packages/app/src/cli/services/bulk-operations/execute-bulk-operation.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ describe('executeBulkOperation', () => {
365365

366366
expect(renderInfo).toHaveBeenCalledWith({
367367
headline: `Bulk operation ${createdBulkOperation.id} is still running in the background.`,
368-
body: ['Monitor its progress with:', {command: expect.stringContaining('shopify app bulk status')}],
368+
body: ['Monitor its progress with:\n', {command: expect.stringContaining('shopify app bulk status')}],
369369
})
370370
expect(downloadBulkOperationResults).not.toHaveBeenCalled()
371371
})

packages/app/src/cli/services/bulk-operations/execute-bulk-operation.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import {runBulkOperationMutation} from './run-mutation.js'
33
import {watchBulkOperation, type BulkOperation} from './watch-bulk-operation.js'
44
import {formatBulkOperationStatus} from './format-bulk-operation-status.js'
55
import {downloadBulkOperationResults} from './download-bulk-operation-results.js'
6+
import {extractBulkOperationId} from './bulk-operation-status.js'
67
import {
78
createAdminSessionAsApp,
89
validateSingleOperation,
@@ -169,7 +170,10 @@ function validateGraphQLDocument(graphqlOperation: string, variablesJsonl?: stri
169170
}
170171

171172
function statusCommandHelpMessage(operationId: string): TokenItem {
172-
return ['Monitor its progress with:', {command: `shopify app bulk status --id="${operationId}}"`}]
173+
return [
174+
'Monitor its progress with:\n',
175+
{command: `shopify app bulk status --id=${extractBulkOperationId(operationId)}`},
176+
]
173177
}
174178

175179
function isMutation(graphqlOperation: string): boolean {

0 commit comments

Comments
 (0)