command-runner:运行命令

时间:2024-07-13 07:59:35
【文件属性】:

文件名称:command-runner:运行命令

文件大小:18KB

文件格式:ZIP

更新时间:2024-07-13 07:59:35

Ruby

命令运行程序 运行命令。 require 'command/runner' line = Command :: Runner . new ( "echo" , "hello" ) message = line . pass # => # message . exit_code # => 0 message . stdout # => "hello\n" message . time # => 0.00091773 message . process_id # => 9622 message . line # => "echo hello" 与插值... line = Command :: Runner . new ( "echo" , "{interpolation}" )


【文件预览】:
command-runner-master
----.travis.yml(117B)
----command-runner.gemspec(960B)
----Rakefile(95B)
----LICENSE(1KB)
----Gemfile(39B)
----Gemfile.lock(730B)
----.rspec(74B)
----spec()
--------messenger_spec.rb(3KB)
--------backticks_spec.rb(496B)
--------spawn_spec.rb(1KB)
--------interpolation_spec.rb(464B)
--------spec_helper.rb(98B)
----.gitignore(18B)
----lib()
--------command()
--------command-runner.rb(25B)
----README.md(2KB)

网友评论