Sha256: 686a6d0d70513e0eeb1110fc946416ccd9ee08f38064ceeb30207d54e282d710

Contents?: true

Size: 505 Bytes

Versions: 1

Compression:

Stored size: 505 Bytes

Contents

module Quickl
  
  # Instance method for being a single command
  module Command::Single
    
    # Command arguments after options parsing
    attr_reader :args

    # Run the command by delegation
    def _run(argv = [])
      execute(parse_options(argv))
    end
    
  end # module Command::Single
  
  #
  # Create a single command
  #
  def self.Command(*args)
    command_builder do |b|
      b.document *args
      b.instance_module Command::Single
    end
    Command
  end
  
end # module Quickl

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
quickl-0.2.0 lib/quickl/command/single.rb