Skip to content

Commit 67247bf

Browse files
authored
Merge pull request #6012 from Shopify/gg-add-path-flags
Ensure all theme commands accept --path
2 parents c40ca99 + f7ac007 commit 67247bf

30 files changed

+275
-88
lines changed

.changeset/brown-ligers-appear.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@shopify/theme': patch
3+
---
4+
5+
Ensure all theme commands accept the --path flag

docs-shopify.dev/commands/interfaces/theme-check.interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export interface themecheck {
5252
'-o, --output <value>'?: string
5353

5454
/**
55-
* The path to your theme directory.
55+
* The path where you want to run the command. Defaults to the current working directory.
5656
* @environment SHOPIFY_FLAG_PATH
5757
*/
5858
'--path <value>'?: string

docs-shopify.dev/commands/interfaces/theme-console.interface.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ export interface themeconsole {
1818
*/
1919
'--password <value>'?: string
2020

21+
/**
22+
* The path where you want to run the command. Defaults to the current working directory.
23+
* @environment SHOPIFY_FLAG_PATH
24+
*/
25+
'--path <value>'?: string
26+
2127
/**
2228
* Store URL. It can be the store prefix (example) or the full myshopify.com URL (example.myshopify.com, https://example.myshopify.com).
2329
* @environment SHOPIFY_FLAG_STORE

docs-shopify.dev/commands/interfaces/theme-delete.interface.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ export interface themedelete {
3030
*/
3131
'--password <value>'?: string
3232

33+
/**
34+
* The path where you want to run the command. Defaults to the current working directory.
35+
* @environment SHOPIFY_FLAG_PATH
36+
*/
37+
'--path <value>'?: string
38+
3339
/**
3440
* Include others development themes in theme list.
3541
* @environment SHOPIFY_FLAG_SHOW_ALL

docs-shopify.dev/commands/interfaces/theme-dev.interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export interface themedev {
7373
'--password <value>'?: string
7474

7575
/**
76-
* The path to your theme directory.
76+
* The path where you want to run the command. Defaults to the current working directory.
7777
* @environment SHOPIFY_FLAG_PATH
7878
*/
7979
'--path <value>'?: string

docs-shopify.dev/commands/interfaces/theme-info.interface.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ export interface themeinfo {
3030
*/
3131
'--password <value>'?: string
3232

33+
/**
34+
* The path where you want to run the command. Defaults to the current working directory.
35+
* @environment SHOPIFY_FLAG_PATH
36+
*/
37+
'--path <value>'?: string
38+
3339
/**
3440
* Store URL. It can be the store prefix (example) or the full myshopify.com URL (example.myshopify.com, https://example.myshopify.com).
3541
* @environment SHOPIFY_FLAG_STORE

docs-shopify.dev/commands/interfaces/theme-init.interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export interface themeinit {
1919
'--no-color'?: ''
2020

2121
/**
22-
* The path to your theme directory.
22+
* The path where you want to run the command. Defaults to the current working directory.
2323
* @environment SHOPIFY_FLAG_PATH
2424
*/
2525
'--path <value>'?: string

docs-shopify.dev/commands/interfaces/theme-list.interface.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ export interface themelist {
3636
*/
3737
'--password <value>'?: string
3838

39+
/**
40+
* The path where you want to run the command. Defaults to the current working directory.
41+
* @environment SHOPIFY_FLAG_PATH
42+
*/
43+
'--path <value>'?: string
44+
3945
/**
4046
* Only list themes with the given role.
4147
* @environment SHOPIFY_FLAG_ROLE

docs-shopify.dev/commands/interfaces/theme-metafields-pull.interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export interface thememetafieldspull {
1919
'--password <value>'?: string
2020

2121
/**
22-
* The path to your theme directory.
22+
* The path where you want to run the command. Defaults to the current working directory.
2323
* @environment SHOPIFY_FLAG_PATH
2424
*/
2525
'--path <value>'?: string

docs-shopify.dev/commands/interfaces/theme-open.interface.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ export interface themeopen {
3636
*/
3737
'--password <value>'?: string
3838

39+
/**
40+
* The path where you want to run the command. Defaults to the current working directory.
41+
* @environment SHOPIFY_FLAG_PATH
42+
*/
43+
'--path <value>'?: string
44+
3945
/**
4046
* Store URL. It can be the store prefix (example) or the full myshopify.com URL (example.myshopify.com, https://example.myshopify.com).
4147
* @environment SHOPIFY_FLAG_STORE

0 commit comments

Comments
 (0)