Sha256: 5fdf9d6a16423036a9a1da2e6b3bb96757051d4d0a7d34ed2ef1bad9398e5e00

Contents?: true

Size: 277 Bytes

Versions: 57

Compression:

Stored size: 277 Bytes

Contents

module Theme
  module Forms
    class ConfirmStore < ShopifyCLI::Form
      flag_arguments :title, :force

      def ask
        @confirmed = force || CLI::UI::Prompt.confirm(title, default: false)
      end

      def confirmed?
        @confirmed
      end
    end
  end
end

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
shopify-cli-2.36.0 lib/project_types/theme/forms/confirm_store.rb
shopify-cli-2.35.0 lib/project_types/theme/forms/confirm_store.rb
shopify-cli-2.34.0 lib/project_types/theme/forms/confirm_store.rb
shopify-cli-2.33.1 lib/project_types/theme/forms/confirm_store.rb
shopify-cli-2.33.0 lib/project_types/theme/forms/confirm_store.rb
shopify-cli-2.32.1 lib/project_types/theme/forms/confirm_store.rb
shopify-cli-2.32.0 lib/project_types/theme/forms/confirm_store.rb
shopify-cli-2.31.0 lib/project_types/theme/forms/confirm_store.rb
shopify-cli-2.30.0 lib/project_types/theme/forms/confirm_store.rb
shopify-cli-2.29.0 lib/project_types/theme/forms/confirm_store.rb
shopify-cli-2.28.0 lib/project_types/theme/forms/confirm_store.rb
shopify-cli-2.27.0 lib/project_types/theme/forms/confirm_store.rb
shopify-cli-2.26.0 lib/project_types/theme/forms/confirm_store.rb
shopify-cli-2.25.0 lib/project_types/theme/forms/confirm_store.rb
shopify-cli-2.24.0 lib/project_types/theme/forms/confirm_store.rb
shopify-cli-2.23.0 lib/project_types/theme/forms/confirm_store.rb
shopify-cli-2.22.0 lib/project_types/theme/forms/confirm_store.rb
shopify-cli-2.21.0 lib/project_types/theme/forms/confirm_store.rb
shopify-cli-2.20.1 lib/project_types/theme/forms/confirm_store.rb
shopify-cli-2.20.0 lib/project_types/theme/forms/confirm_store.rb