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.6 lib/metanorma/cli/ui.rb
metanorma-cli-1.2.4 lib/metanorma/cli/ui.rb
metanorma-cli-1.2.3 lib/metanorma/cli/ui.rb
metanorma-cli-1.2.2 lib/metanorma/cli/ui.rb
metanorma-cli-1.2.1 lib/metanorma/cli/ui.rb