Sha256: 845664491523a7732ef9e2ab50595629d35219ff99b0dde0059d03452a409400

Contents?: true

Size: 140 Bytes

Versions: 7

Compression:

Stored size: 140 Bytes

Contents

module Danger
  class Cmd
    def self.run(cmd)
      stdout, _stderr, _status = Open3.capture3(*cmd)

      stdout.strip
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
danger-swiftformat-0.3.1 lib/swiftformat/cmd.rb
danger-swiftformat-0.3.0 lib/swiftformat/cmd.rb
danger-swiftformat-0.2.0 lib/swiftformat/cmd.rb
danger-swiftformat-0.1.0 lib/swiftformat/cmd.rb
danger-swiftformat-0.0.3 lib/swiftformat/cmd.rb
danger-swiftformat-0.0.2 lib/swiftformat/cmd.rb
danger-swiftformat-0.0.1 lib/swiftformat/cmd.rb