1- import { appFlags } from '../../flags.js'
1+ import { appFlags , bulkOperationFlags } from '../../flags.js'
22import AppLinkedCommand , { AppLinkedCommandOutput } from '../../utilities/app-linked-command.js'
33import { linkedAppContext } from '../../services/app-context.js'
44import { storeContext } from '../../services/store-context.js'
55import { runBulkOperationQuery } from '../../services/bulk-operations.js'
6- import { Flags } from '@oclif/core'
76import { globalFlags } from '@shopify/cli-kit/node/cli'
87import { renderSuccess , renderInfo , renderWarning } from '@shopify/cli-kit/node/ui'
9- import { normalizeStoreFqdn } from '@shopify/cli-kit/node/context/fqdn'
108import { outputContent , outputToken } from '@shopify/cli-kit/node/output'
119
1210export default class Execute extends AppLinkedCommand {
@@ -19,18 +17,7 @@ export default class Execute extends AppLinkedCommand {
1917 static flags = {
2018 ...globalFlags ,
2119 ...appFlags ,
22- query : Flags . string ( {
23- char : 'q' ,
24- description : 'The GraphQL query, as a string.' ,
25- env : 'SHOPIFY_FLAG_QUERY' ,
26- required : true ,
27- } ) ,
28- store : Flags . string ( {
29- char : 's' ,
30- description : 'Store URL. Must be an existing development or Shopify Plus sandbox store.' ,
31- env : 'SHOPIFY_FLAG_STORE' ,
32- parse : async ( input ) => normalizeStoreFqdn ( input ) ,
33- } ) ,
20+ ...bulkOperationFlags ,
3421 }
3522
3623 async run ( ) : Promise < AppLinkedCommandOutput > {
0 commit comments