File tree Expand file tree Collapse file tree 2 files changed +1
-15
lines changed
app/src/cli/commands/app/function Expand file tree Collapse file tree 2 files changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -34,18 +34,13 @@ export default class FunctionRun extends AppUnlinkedCommand {
3434 description : 'Name of the WebAssembly export to invoke.' ,
3535 env : 'SHOPIFY_FLAG_EXPORT' ,
3636 } ) ,
37- 'invoked-by' : Flags . string ( {
38- hidden : true ,
39- description : 'Internal flag to track which client invoked this command.' ,
40- env : 'SHOPIFY_FLAG_INVOKED_BY' ,
41- } ) ,
4237 }
4338
4439 public async run ( ) : Promise < AppUnlinkedCommandOutput > {
4540 const { flags} = await this . parse ( FunctionRun )
4641
4742 // Track which client invoked this command
48- const invokedBy = flags [ 'invoked-by' ]
43+ const invokedBy = process . env . SHOPIFY_FLAG_INVOKED_BY
4944 if ( invokedBy ) {
5045 await addPublicMetadata ( ( ) => ( {
5146 cmd_app_function_run_invoked_by : invokedBy ,
Original file line number Diff line number Diff line change 11311131 "name" : " input" ,
11321132 "type" : " option"
11331133 },
1134- "invoked-by" : {
1135- "description" : " Internal flag to track which client invoked this command." ,
1136- "env" : " SHOPIFY_FLAG_INVOKED_BY" ,
1137- "hasDynamicHelp" : false ,
1138- "hidden" : true ,
1139- "multiple" : false ,
1140- "name" : " invoked-by" ,
1141- "type" : " option"
1142- },
11431134 "json" : {
11441135 "allowNo" : false ,
11451136 "char" : " j" ,
You can’t perform that action at this time.
0 commit comments