diff --git a/src/kommando/helpers.cr b/src/kommando/helpers.cr new file mode 100644 index 0000000..d3e1eed --- /dev/null +++ b/src/kommando/helpers.cr @@ -0,0 +1,13 @@ +module Kommando::Helpers + def run!(*args : String | Path, **options) + r = Process.run( + args.first.to_s, args.skip(1).map(&.to_s), + output: STDOUT, + error: STDOUT + ) + + raise "Command failed" if !r.success? + + r + end +end