Sha256: a7113daf31ede30ea71911961579a9797946f9cd1874b73a207846c24f8b40c0

Contents?: true

Size: 374 Bytes

Versions: 25

Compression:

Stored size: 374 Bytes

Contents

require "thor"

module Metanorma
  module Cli
    class UI < Thor
      def self.ask(message)
        new.ask(message)
      end

      def self.say(message)
        new.say(message)
      end

      def self.error(message)
        new.error(message)
      end

      def self.run(command)
        require "open3"
        Open3.capture3(command)
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
metanorma-cli-1.2.11.2 lib/metanorma/cli/ui.rb
metanorma-cli-1.2.11.1 lib/metanorma/cli/ui.rb
metanorma-cli-1.2.11 lib/metanorma/cli/ui.rb
metanorma-cli-1.2.10.2 lib/metanorma/cli/ui.rb
metanorma-cli-1.2.10.1 lib/metanorma/cli/ui.rb
metanorma-cli-1.2.10 lib/metanorma/cli/ui.rb
metanorma-cli-1.2.9.2 lib/metanorma/cli/ui.rb
metanorma-cli-1.2.9.1 lib/metanorma/cli/ui.rb
metanorma-cli-1.2.9 lib/metanorma/cli/ui.rb
metanorma-cli-1.2.8.6 lib/metanorma/cli/ui.rb
metanorma-cli-1.2.8.5 lib/metanorma/cli/ui.rb
metanorma-cli-1.2.8.4 lib/metanorma/cli/ui.rb
metanorma-cli-1.2.8.3 lib/metanorma/cli/ui.rb
metanorma-cli-1.2.8.2 lib/metanorma/cli/ui.rb
metanorma-cli-1.2.8.1 lib/metanorma/cli/ui.rb
metanorma-cli-1.2.8 lib/metanorma/cli/ui.rb
metanorma-cli-1.2.7.3 lib/metanorma/cli/ui.rb
metanorma-cli-1.2.7.2 lib/metanorma/cli/ui.rb
metanorma-cli-1.2.7.1 lib/metanorma/cli/ui.rb
metanorma-cli-1.2.7 lib/metanorma/cli/ui.rb