Skip to content

Commit 322d2ef

Browse files
committed
Allow theme commands to take glob pattern for environments
1 parent 6d0d24b commit 322d2ef

24 files changed

+130
-88
lines changed

.changeset/wet-bats-glow.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@shopify/cli-kit': patch
3+
'@shopify/theme': patch
4+
'@shopify/app': patch
5+
---
6+
7+
Updated the environment flag to support glob patterns
8+
9+
For commands that support multiple environments you can now use glob patterns
10+
to specify the environments, e.g. `--environment "*-production"`. It's important
11+
to wrap any glob patterns in quotes to ensure your shell does not expand the
12+
value before passing it to the CLI.
13+
14+
This comes with a side effect that environments will be deduplicated.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export interface themecheck {
1616
'-C, --config <value>'?: string
1717

1818
/**
19-
* The environment to apply to the current command.
19+
* The environment to apply to the current command. Wrap the value in double quotes if you're using wildcards.
2020
* @environment SHOPIFY_FLAG_ENVIRONMENT
2121
*/
2222
'-e, --environment <value>'?: string

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This is an autogenerated file. Don't edit this file manually.
22
export interface themeconsole {
33
/**
4-
* The environment to apply to the current command.
4+
* The environment to apply to the current command. Wrap the value in double quotes if you're using wildcards.
55
* @environment SHOPIFY_FLAG_ENVIRONMENT
66
*/
77
'-e, --environment <value>'?: string

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export interface themedelete {
77
'-d, --development'?: ''
88

99
/**
10-
* The environment to apply to the current command.
10+
* The environment to apply to the current command. Wrap the value in double quotes if you're using wildcards.
1111
* @environment SHOPIFY_FLAG_ENVIRONMENT
1212
*/
1313
'-e, --environment <value>'?: string

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This is an autogenerated file. Don't edit this file manually.
22
export interface themedev {
33
/**
4-
* The environment to apply to the current command.
4+
* The environment to apply to the current command. Wrap the value in double quotes if you're using wildcards.
55
* @environment SHOPIFY_FLAG_ENVIRONMENT
66
*/
77
'-e, --environment <value>'?: string

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This is an autogenerated file. Don't edit this file manually.
22
export interface themeduplicate {
33
/**
4-
* The environment to apply to the current command.
4+
* The environment to apply to the current command. Wrap the value in double quotes if you're using wildcards.
55
* @environment SHOPIFY_FLAG_ENVIRONMENT
66
*/
77
'-e, --environment <value>'?: string

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export interface themeinfo {
77
'-d, --development'?: ''
88

99
/**
10-
* The environment to apply to the current command.
10+
* The environment to apply to the current command. Wrap the value in double quotes if you're using wildcards.
1111
* @environment SHOPIFY_FLAG_ENVIRONMENT
1212
*/
1313
'-e, --environment <value>'?: string

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This is an autogenerated file. Don't edit this file manually.
22
export interface themelist {
33
/**
4-
* The environment to apply to the current command.
4+
* The environment to apply to the current command. Wrap the value in double quotes if you're using wildcards.
55
* @environment SHOPIFY_FLAG_ENVIRONMENT
66
*/
77
'-e, --environment <value>'?: string

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This is an autogenerated file. Don't edit this file manually.
22
export interface thememetafieldspull {
33
/**
4-
* The environment to apply to the current command.
4+
* The environment to apply to the current command. Wrap the value in double quotes if you're using wildcards.
55
* @environment SHOPIFY_FLAG_ENVIRONMENT
66
*/
77
'-e, --environment <value>'?: string

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export interface themeopen {
1313
'-E, --editor'?: ''
1414

1515
/**
16-
* The environment to apply to the current command.
16+
* The environment to apply to the current command. Wrap the value in double quotes if you're using wildcards.
1717
* @environment SHOPIFY_FLAG_ENVIRONMENT
1818
*/
1919
'-e, --environment <value>'?: string

0 commit comments

Comments
 (0)