Sha256: 22ec511ee5cf154d295d3cb8fe001153d87116262ba673002641b31ca80de228
Contents?: true
Size: 489 Bytes
Versions: 20
Compression:
Stored size: 489 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| begin yield(*args) rescue StandardError => e exception = e CLI::UI::Spinner::TASK_FAILED end end raise exception if exception end end end end
Version data entries
20 entries across 20 versions & 1 rubygems