You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 42bc978
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: packages/cli/oclif.manifest.json
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -9818,7 +9818,8 @@
9818
9818
"args": {
9819
9819
},
9820
9820
"customPluginName": "@shopify/theme",
9821
-
"description": "Displays information about your theme environment, including your current store. Can also retrieve information about a specific theme.",
9821
+
"description": "Displays information about your theme environment, including your current store. Can also retrieve information about a specific theme.\n\nUse `--json` for machine-readable output.\n\nOutput from `--json` conforms to the `ThemeInfoResult` schema.\n\nUse `--json-schema` to print the schema directly:\n\n```ts\ntype ThemeInfoResult = ThemeInfoThemeResult | ThemeEnvironmentInfo\n\ninterface ThemeInfoTheme {\n id: number\n name: string\n role: string\n shop: string\n preview_url: string\n editor_url: string\n}\n\ninterface ThemeInfoThemeResult {\n theme: ThemeInfoTheme\n}\n\ninterface ThemeEnvironmentInfo {\n store: string\n development_theme_id: number | null\n cli_version: string\n os: string\n shell: string\n node_version: string\n}\n```",
9822
+
"descriptionWithMarkdown": "Displays information about your theme environment, including your current store. Can also retrieve information about a specific theme.\n\nUse `--json` for machine-readable output.",
Copy file name to clipboardExpand all lines: packages/theme/src/cli/commands/theme/info.ts
+9-6Lines changed: 9 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -13,8 +13,15 @@ import {recordTiming} from '@shopify/cli-kit/node/analytics'
13
13
typeInfoFlags=OutputFlags<typeofInfo.flags>
14
14
15
15
exportdefaultclassInfoextendsThemeCommand{
16
-
staticdescription=
17
-
'Displays information about your theme environment, including your current store. Can also retrieve information about a specific theme.'
16
+
staticgetjsonOutputSchema(){
17
+
returnthemeInfoJsonOutputSchema
18
+
}
19
+
20
+
staticdescriptionWithMarkdown=`Displays information about your theme environment, including your current store. Can also retrieve information about a specific theme.
21
+
22
+
Use \`--json\` for machine-readable output.`
23
+
24
+
staticdescription=this.descriptionForHelp()
18
25
19
26
staticflags={
20
27
...globalFlags,
@@ -34,10 +41,6 @@ export default class Info extends ThemeCommand {
0 commit comments