Skip to content

Commit 2b9ee4f

Browse files
committed
making invoked-by only readable by setting an env variable
1 parent 09f5d8a commit 2b9ee4f

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

packages/app/src/cli/commands/app/function/run.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff 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,

packages/cli/oclif.manifest.json

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,15 +1131,6 @@
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",

0 commit comments

Comments
 (0)