Sha256: 9d1be495d3d1c0a44615bd8524bc8ed392e2ebcd856efd5571879af2bd10fb86

Contents?: true

Size: 421 Bytes

Versions: 44

Compression:

Stored size: 421 Bytes

Contents

# frozen_string_literal: true

require 'open4'

module Lino
  class CommandLine
    def initialize(command_line)
      @command_line = command_line
    end

    def execute(
      stdin: '',
      stdout: $stdout,
      stderr: $stderr
    )
      Open4.spawn(
        @command_line,
        stdin: stdin,
        stdout: stdout,
        stderr: stderr
      )
    end

    def to_s
      @command_line
    end
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
lino-3.2.0.pre.5 lib/lino/command_line.rb
lino-3.2.0.pre.4 lib/lino/command_line.rb
lino-3.2.0.pre.3 lib/lino/command_line.rb
lino-3.2.0.pre.2 lib/lino/command_line.rb
lino-3.2.0.pre.1 lib/lino/command_line.rb
lino-3.1.0 lib/lino/command_line.rb
lino-3.1.0.pre.18 lib/lino/command_line.rb
lino-3.1.0.pre.17 lib/lino/command_line.rb
lino-3.1.0.pre.16 lib/lino/command_line.rb
lino-3.1.0.pre.15 lib/lino/command_line.rb
lino-3.1.0.pre.14 lib/lino/command_line.rb
lino-3.1.0.pre.13 lib/lino/command_line.rb
lino-3.1.0.pre.12 lib/lino/command_line.rb
lino-3.1.0.pre.11 lib/lino/command_line.rb
lino-3.1.0.pre.10 lib/lino/command_line.rb
lino-3.1.0.pre.9 lib/lino/command_line.rb
lino-3.1.0.pre.8 lib/lino/command_line.rb
lino-3.1.0.pre.7 lib/lino/command_line.rb
lino-3.1.0.pre.6 lib/lino/command_line.rb
lino-3.1.0.pre.5 lib/lino/command_line.rb