From 0bf6e3fb866156dd1a455fc47357ee4e440bf645 Mon Sep 17 00:00:00 2001 From: marguerite Date: Sun, 10 Jan 2016 23:43:49 +0800 Subject: [PATCH] puts the command we run to stdout too --- golang/cli.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/golang/cli.rb b/golang/cli.rb index 172b537..15b3ee4 100644 --- a/golang/cli.rb +++ b/golang/cli.rb @@ -2,6 +2,9 @@ module CLI def self.run(command="") + # echo the command we run to the buildlog + puts command + IO.popen(command) {|f| f.each_line {|l| puts l}} if $? == 0