Sha256: aa2d9d07818048d2cafdc7230ac2476471065c3e8ccd7a5226b12eb2ea06b261
Contents?: true
Size: 1.38 KB
Versions: 1
Compression:
Stored size: 1.38 KB
Contents
require 'dry-configurable' require 'arduino/library' require 'yaml' module Arli class Configuration DEFAULT_FILENAME = 'Arlifile'.freeze ACTIONS_WHEN_EXISTS = %i(backup overwrite abort) ARLI_COMMAND = 'arli'.freeze extend Dry::Configurable # These are populated during the parsing of the params setting :runtime do setting :argv setting :command do setting :name setting :instance end end setting :libraries do setting :path, ::Arduino::Library::DefaultDatabase.library_path end setting :database do setting :path, ::Arduino::Library::DefaultDatabase.library_index_path setting :url, ::Arduino::Library::DefaultDatabase.library_index_url end setting :arlifile do setting :path, ::Dir.pwd setting :name, ::Arli::Configuration::DEFAULT_FILENAME end setting :search do setting :default_field, :name setting :results do setting :limit, 100 setting :format, :inspect end end setting :install do setting :library setting :if_exists do setting :overwrite, true setting :backup, false setting :abort, false end end setting :debug, ENV['ARLI_DEBUG'] || false setting :trace, false setting :verbose, false setting :help, false setting :command_help, false end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
arli-0.6.1 | lib/arli/configuration.rb |