Sha256: 31bfcda9e4937bd9db202358b8e40e0c308f14d76d3b0f85cfccabcd7fd762de
Contents?: true
Size: 752 Bytes
Versions: 22
Compression:
Stored size: 752 Bytes
Contents
# frozen_string_literal: true require "shopify_cli/theme/theme" require "project_types/theme/presenters/themes_presenter" module Theme class Command class List < ShopifyCLI::Command::SubCommand recommend_default_ruby_range def call(_args, _name) @ctx.puts(@ctx.message("theme.list.title", shop)) themes_presenter.all.each do |theme| @ctx.puts(" #{theme}") end end def self.help @ctx.message("theme.list.help", ShopifyCLI::TOOL_NAME, ShopifyCLI::TOOL_NAME) end private def themes_presenter Theme::Presenters::ThemesPresenter.new(@ctx, nil) end def shop ShopifyCLI::AdminAPI.get_shop_or_abort(@ctx) end end end end
Version data entries
22 entries across 22 versions & 1 rubygems