mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-09-22 19:16:07 +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
|
||||
themes=("${(@f)$(< "$cache_file")}")
|
||||
else
|
||||
json="$(command shopify theme list --json 2>/dev/null)" || return 1
|
||||
# One chunk per object, in zsh, so there is no dependency on jq.
|
||||
json="$(shopify theme list --json 2>/dev/null)" || return 1
|
||||
split="${json//\{/$nl}"
|
||||
for entry in ${(f)split}; do
|
||||
id="" name="" role=""
|
||||
|
||||
Reference in New Issue
Block a user