Sha256: 35baa94801b30f8ecebefde2d612946e6e447293c7f8cd71d792f5b6ff6ff5d8

Contents?: true

Size: 619 Bytes

Versions: 2

Compression:

Stored size: 619 Bytes

Contents

require 'thor'
require_relative './config/config.rb'
require_relative './db/db.rb'
require_relative './cli/application.rb'

module Moose
  module Inventory
    ##
    # Module implementing the CLI for moose-inventory
    module Cli
      # rubocop:disable Style/ModuleFunction
      extend self
      # rubocop:enable Style/ModuleFunction

      def start(args)
        # initialization stuff.
        Moose::Inventory::Config.init(args)
        Moose::Inventory::DB.init

        # Start the main application
        Moose::Inventory::Cli::Application.start(Moose::Inventory::Config._argv)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
moose-inventory-0.1.1 lib/moose/inventory/moose_inventory_cli.rb
moose-inventory-0.1.0 lib/moose/inventory/moose_inventory_cli.rb