Sha256: b6b285c1acd4e2c1280dbeaf449aae52b0425fbc3b418eb5813a331cb707c7d6
Contents?: true
Size: 432 Bytes
Versions: 32
Compression:
Stored size: 432 Bytes
Contents
require 'magellan/cli' require 'shellwords' def cli(args, options = {}) args = Shellwords.split(args) if args.is_a?(String) args << "-V" if ARGV.include?("-V") $PROGRAM_NAME, backup = "magellan-cli", $PROGRAM_NAME puts "[CLI] `#{$PROGRAM_NAME} #{args.join(' ')}`" begin Magellan::Cli::Command.start(args) do |e| exit(1) unless e.message =~ options[:allow] end ensure $PROGRAM_NAME = backup end end
Version data entries
32 entries across 32 versions & 1 rubygems