From 14ce5469d7c6fcf76c9891e3557ff079cba0a873 Mon Sep 17 00:00:00 2001 From: Morisa Manzella Date: Wed, 28 Jun 2023 09:00:50 -0400 Subject: [PATCH 1/4] Hide `shopify theme update init` and `shopify theme update check` commands --- .changeset/slimy-icons-flash.md | 6 ++++++ packages/cli/package.json | 3 ++- packages/theme/src/cli/commands/theme/update/check.ts | 1 + packages/theme/src/cli/commands/theme/update/init.ts | 1 + 4 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .changeset/slimy-icons-flash.md diff --git a/.changeset/slimy-icons-flash.md b/.changeset/slimy-icons-flash.md new file mode 100644 index 0000000000..4b8174e250 --- /dev/null +++ b/.changeset/slimy-icons-flash.md @@ -0,0 +1,6 @@ +--- +'@shopify/theme': patch +'@shopify/cli': patch +--- + +Hide `shopify theme update init` and `shopify theme update check` commands diff --git a/packages/cli/package.json b/packages/cli/package.json index dba13cf310..5017ef1c72 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -142,7 +142,8 @@ "description": "Build Liquid themes." }, "theme:update": { - "description": "Manage 'update_extension.json' scripts." + "description": "Manage 'update_extension.json' scripts.", + "hidden": true }, "app": { "description": "Build Shopify apps." diff --git a/packages/theme/src/cli/commands/theme/update/check.ts b/packages/theme/src/cli/commands/theme/update/check.ts index 47f94a5426..913825fbe9 100644 --- a/packages/theme/src/cli/commands/theme/update/check.ts +++ b/packages/theme/src/cli/commands/theme/update/check.ts @@ -5,6 +5,7 @@ import {Flags} from '@oclif/core' export default class UpdateCheck extends ThemeCommand { static description = `Validate an 'update_extension.json' script.` + static hidden = true static flags = { ...globalFlags, diff --git a/packages/theme/src/cli/commands/theme/update/init.ts b/packages/theme/src/cli/commands/theme/update/init.ts index 2660c02764..3f34d73956 100644 --- a/packages/theme/src/cli/commands/theme/update/init.ts +++ b/packages/theme/src/cli/commands/theme/update/init.ts @@ -5,6 +5,7 @@ import {globalFlags} from '@shopify/cli-kit/node/cli' export default class UpdateInit extends ThemeCommand { static description = `Initialize an 'update_extension.json' script.` + static hidden = true static flags = { ...globalFlags, From b018cbd1446644c009985c18ec7d64fffd56c616 Mon Sep 17 00:00:00 2001 From: Guilherme Carreiro Date: Wed, 28 Jun 2023 15:18:16 +0200 Subject: [PATCH 2/4] Refresh manifests --- packages/theme/oclif.manifest.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/theme/oclif.manifest.json b/packages/theme/oclif.manifest.json index 111c20b558..dc1856aa8f 100644 --- a/packages/theme/oclif.manifest.json +++ b/packages/theme/oclif.manifest.json @@ -1269,6 +1269,7 @@ "pluginName": "@shopify/theme", "pluginAlias": "@shopify/theme", "pluginType": "core", + "hidden": true, "aliases": [], "flags": { "no-color": { @@ -1302,6 +1303,7 @@ "pluginName": "@shopify/theme", "pluginAlias": "@shopify/theme", "pluginType": "core", + "hidden": true, "aliases": [], "flags": { "no-color": { From 6c027c494ecb7643d66037953624da56ecf35b92 Mon Sep 17 00:00:00 2001 From: Gonzalo Riestra Date: Wed, 28 Jun 2023 15:45:30 +0200 Subject: [PATCH 3/4] Regenerate test snapshots for commands --- packages/features/snapshots/commands.txt | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/features/snapshots/commands.txt b/packages/features/snapshots/commands.txt index ef80f4291b..d7c86a7930 100644 --- a/packages/features/snapshots/commands.txt +++ b/packages/features/snapshots/commands.txt @@ -41,8 +41,6 @@ theme pull @shopify/theme theme push @shopify/theme theme share @shopify/theme - theme update check @shopify/theme - theme update init @shopify/theme upgrade @shopify/cli version @shopify/cli webhook trigger @shopify/app From 219cbb7c74f25090344da93e18b022be29942be9 Mon Sep 17 00:00:00 2001 From: Gonzalo Riestra Date: Wed, 28 Jun 2023 15:50:27 +0200 Subject: [PATCH 4/4] Remove changeset --- .changeset/slimy-icons-flash.md | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 .changeset/slimy-icons-flash.md diff --git a/.changeset/slimy-icons-flash.md b/.changeset/slimy-icons-flash.md deleted file mode 100644 index 4b8174e250..0000000000 --- a/.changeset/slimy-icons-flash.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@shopify/theme': patch -'@shopify/cli': patch ---- - -Hide `shopify theme update init` and `shopify theme update check` commands