mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-09-27 05:26:06 +02:00
Replace command with direct shopify call for theme list
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
co-authored by
Copilot Autofix powered by AI
parent
419fc5e9b5
commit
e2be8df511
@@ -44,8 +44,7 @@ _shopify_themes() {
|
|||||||
if (( $#fresh )); then
|
if (( $#fresh )); then
|
||||||
themes=("${(@f)$(< "$cache_file")}")
|
themes=("${(@f)$(< "$cache_file")}")
|
||||||
else
|
else
|
||||||
json="$(command shopify theme list --json 2>/dev/null)" || return 1
|
json="$(shopify theme list --json 2>/dev/null)" || return 1
|
||||||
# One chunk per object, in zsh, so there is no dependency on jq.
|
|
||||||
split="${json//\{/$nl}"
|
split="${json//\{/$nl}"
|
||||||
for entry in ${(f)split}; do
|
for entry in ${(f)split}; do
|
||||||
id="" name="" role=""
|
id="" name="" role=""
|
||||||
|
|||||||
Reference in New Issue
Block a user