lib/simple/cli/helpers.rb in simple-cli-0.3.0 vs lib/simple/cli/helpers.rb in simple-cli-0.3.3

- old
+ new

@@ -1,15 +1,17 @@ require "open3" -# Helpers are mixed into all CLI modules. They implement the following methods, -# mostly to help with integrating external commands: +# This module defines various helpers that might be useful for many CLI applications. # # - sys # - sys! # - sh! # - die! # module Simple::CLI::Helpers + # The methods here must be private, lest they not show up as subcommands. + private + def die!(msg) STDERR.puts msg exit 1 end