@@ -83,7 +83,7 @@ def run_with_gui_guess(message, *args, **kwargs)
83
83
end
84
84
85
85
# run a command and capture its output
86
- # @return [Hash] {:out => StringIO , :err => StringIO , :success => bool}
86
+ # @return [Hash] {:out => String , :err => String , :success => bool}
87
87
def run_and_capture ( *args , **kwargs )
88
88
pipe_out , pipe_out_wr = IO . pipe
89
89
pipe_err , pipe_err_wr = IO . pipe
@@ -99,6 +99,13 @@ def run_and_capture(*args, **kwargs)
99
99
{ out : str_out , err : str_err , success : success }
100
100
end
101
101
102
+ # run a command and don't capture its output, but use the same signature
103
+ # @return [Hash] {:out => String, :err => String, :success => bool}
104
+ def run_wrap ( *args , **kwargs )
105
+ success = run ( *args , **kwargs )
106
+ { out : "NOPE, use run_and_capture" , err : "NOPE, use run_and_capture" , success : success }
107
+ end
108
+
102
109
# check whether a board is installed
103
110
# we do this by just selecting a board.
104
111
# the arduino binary will error if unrecognized and do a successful no-op if it's installed
0 commit comments