Sha256: e6cfcace83e675f4c04ad9955698b6a1a78b2034abeb992c641fb8fab9b09b03

Contents?: true

Size: 1.03 KB

Versions: 3

Compression:

Stored size: 1.03 KB

Contents

# frozen_string_literal: true

# The namespace for Cri, a library for building easy-to-use command-line tools
# with support for nested commands.
module Cri
  # A generic error class for all Cri-specific errors.
  class Error < ::StandardError
  end

  # Error that will be raised when an implementation for a method or command
  # is missing. For commands, this may mean that a run block is missing.
  class NotImplementedError < Error
  end

  # Error that will be raised when no help is available because the help
  # command has no supercommand for which to show help.
  class NoHelpAvailableError < Error
  end
end

require 'set'

require 'colored'

require_relative 'cri/version'
require_relative 'cri/argument_list'
require_relative 'cri/command'
require_relative 'cri/string_formatter'
require_relative 'cri/command_dsl'
require_relative 'cri/command_runner'
require_relative 'cri/help_renderer'
require_relative 'cri/option_definition'
require_relative 'cri/option_parser'
require_relative 'cri/param_definition'
require_relative 'cri/platform'

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cri-2.14.0 lib/cri.rb
cri-2.13.0 lib/cri.rb
cri-2.12.0 lib/cri.rb