1- import { appFlags , bulkOperationFlags } from '../../flags.js'
2- import AppLinkedCommand , { AppLinkedCommandOutput } from '../../utilities/app-linked-command.js'
3- import { linkedAppContext } from '../../services/app-context.js'
4- import { storeContext } from '../../services/store-context.js'
5- import { executeBulkOperation } from '../../services/bulk-operations/execute-bulk-operation.js'
1+ import { appFlags , bulkOperationFlags } from '../../../ flags.js'
2+ import AppLinkedCommand , { AppLinkedCommandOutput } from '../../../ utilities/app-linked-command.js'
3+ import { linkedAppContext } from '../../../ services/app-context.js'
4+ import { storeContext } from '../../../ services/store-context.js'
5+ import { executeBulkOperation } from '../../../ services/bulk-operations/execute-bulk-operation.js'
66import { globalFlags } from '@shopify/cli-kit/node/cli'
77import { readStdinString } from '@shopify/cli-kit/node/system'
88import { AbortError } from '@shopify/cli-kit/node/error'
99
10- export default class Execute extends AppLinkedCommand {
10+ export default class BulkExecute extends AppLinkedCommand {
1111 static summary = 'Execute bulk operations.'
1212
1313 static description = 'Execute bulk operations against the Shopify Admin API.'
@@ -21,13 +21,13 @@ export default class Execute extends AppLinkedCommand {
2121 }
2222
2323 async run ( ) : Promise < AppLinkedCommandOutput > {
24- const { flags} = await this . parse ( Execute )
24+ const { flags} = await this . parse ( BulkExecute )
2525
2626 const query = flags . query ?? ( await readStdinString ( ) )
2727 if ( ! query ) {
2828 throw new AbortError (
2929 'No query provided. Use the --query flag or pipe input via stdin.' ,
30- 'Example: echo "query { ... }" | shopify app execute' ,
30+ 'Example: echo "query { ... }" | shopify app bulk execute' ,
3131 )
3232 }
3333
0 commit comments