Sha256: 8d88d64ea0058be3f068b1eed56b5c163b851058d2be69ace06dda3016928c85
Contents?: true
Size: 833 Bytes
Versions: 13
Compression:
Stored size: 833 Bytes
Contents
%w(commands options).each { |p| require File.join(Loops::LIB_ROOT, 'loops/cli', p) } module Loops # Command line interface for the Loops system. # # Used to parse command line options, initialize engine, and # execute command requested. # # @example # Loops::CLI.execute # class CLI include Commands, Options # Register all available commands. register_command :list register_command :debug register_command :start register_command :stop register_command :stats # @return [Array<String>] # The +Array+ of (unparsed) command-line options. attr_reader :args # Initializes a new instance of the {CLI} class. # # @param [Array<String>] args # an +Array+ of command line arguments. # def initialize(args) @args = args.dup end end end
Version data entries
13 entries across 13 versions & 2 rubygems