File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed
Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ export default class BulkExecute extends AppLinkedCommand {
2929 query,
3030 variables : flags . variables ,
3131 variableFile : flags [ 'variable-file' ] ,
32- watch : flags . watch ,
32+ watch : flags . watch ?? false ,
3333 outputFile : flags [ 'output-file' ] ,
3434 ...( flags . version && { version : flags . version } ) ,
3535 } )
Original file line number Diff line number Diff line change @@ -64,13 +64,14 @@ export const bulkOperationFlags = {
6464 parse : async ( input ) => normalizeStoreFqdn ( input ) ,
6565 } ) ,
6666 watch : Flags . boolean ( {
67- description : 'Wait for bulk operation results before exiting.' ,
67+ description : 'Wait for bulk operation results before exiting. Defaults to false. ' ,
6868 env : 'SHOPIFY_FLAG_WATCH' ,
69- default : false ,
7069 } ) ,
7170 'output-file' : Flags . string ( {
72- description : 'The file path where results should be written. If not specified, results will be written to STDOUT.' ,
71+ description :
72+ 'The file path where results should be written if --watch is specified. If not specified, results will be written to STDOUT.' ,
7373 env : 'SHOPIFY_FLAG_OUTPUT_FILE' ,
74+ dependsOn : [ 'watch' ] ,
7475 } ) ,
7576 version : Flags . string ( {
7677 description : 'The API version to use for the bulk operation. If not specified, uses the latest stable version.' ,
Original file line number Diff line number Diff line change 125125 "type" : " boolean"
126126 },
127127 "output-file" : {
128- "description" : " The file path where results should be written. If not specified, results will be written to STDOUT." ,
128+ "dependsOn" : [
129+ " watch"
130+ ],
131+ "description" : " The file path where results should be written if --watch is specified. If not specified, results will be written to STDOUT." ,
129132 "env" : " SHOPIFY_FLAG_OUTPUT_FILE" ,
130133 "hasDynamicHelp" : false ,
131134 "multiple" : false ,
212215 },
213216 "watch" : {
214217 "allowNo" : false ,
215- "description" : " Wait for bulk operation results before exiting." ,
218+ "description" : " Wait for bulk operation results before exiting. Defaults to false. " ,
216219 "env" : " SHOPIFY_FLAG_WATCH" ,
217220 "name" : " watch" ,
218221 "type" : " boolean"
You can’t perform that action at this time.
0 commit comments