Sha256: 244b8d43ff15e0ad239d1f10ce16c5841497f8420c9de3128a7be4a4fb42f979
Contents?: true
Size: 451 Bytes
Versions: 22
Compression:
Stored size: 451 Bytes
Contents
# frozen_string_literal: true require "shopify_cli" module Script module UI module StrictSpinner def self.spin(title, auto_debrief: false) exception = nil CLI::UI::Spinner.spin(title, auto_debrief: auto_debrief) do |*args| yield(*args) rescue StandardError => e exception = e CLI::UI::Spinner::TASK_FAILED end raise exception if exception end end end end
Version data entries
22 entries across 22 versions & 1 rubygems