build_execution:强制执行显式错误处理且从不调用Shell的执行原语

时间:2021-04-27 13:47:35
【文件属性】:
文件名称:build_execution:强制执行显式错误处理且从不调用Shell的执行原语
文件大小:8KB
文件格式:ZIP
更新时间:2021-04-27 13:47:35
Ruby build_execution宝石 强制执行显式错误处理且从不调用Shell的执行原语。 如何使用 该接口类似于Open3.capture2e。 我们在运行命令之前将命令打印到stdout(除非:quiet=> true )。 默认情况下,命令进程共享调用进程的标准输出,但是可以更改。 传递给fail_on_error的选项将传递给popen2e。 > require 'build_execution' > fail_on_error('/bin/echo', '-n', 'asdf') Running Command: "/bin/echo" "-n" "asdf" asdf => "asdf" > fail_on_error('/bin/echo', '-n', 'asdf', :quiet=>true) => "asdf" > fail_pipe_on_error具有类似的接口
【文件预览】:
build_execution-master
----.gitignore(19B)
----build_execution.gemspec(1KB)
----LICENSE.txt(11KB)
----README.md(780B)
----lib()
--------build_execution.rb(5KB)

网友评论