Module: Ace::Compressor::CLI

Defined in:
lib/ace/compressor/cli.rb,
lib/ace/compressor/cli/commands/compress.rb,
lib/ace/compressor/cli/commands/benchmark.rb

Defined Under Namespace

Modules: Commands

Class Method Summary collapse

Class Method Details

.start(args) ⇒ Object



13
14
15
16
17
18
19
20
# File 'lib/ace/compressor/cli.rb', line 13

def self.start(args)
  args = ["--help"] if args.empty?
  if args.first == "benchmark"
    Ace::Support::Cli::Runner.new(Commands::Benchmark).call(args: args.drop(1))
  else
    Ace::Support::Cli::Runner.new(Commands::Compress).call(args: args)
  end
end