lib/arli/configuration.rb in arli-0.9.0 vs lib/arli/configuration.rb in arli-1.0.0
- old
+ new
@@ -3,15 +3,16 @@
require 'yaml'
module Arli
class Configuration
- DEFAULT_FILENAME = 'Arlifile'.freeze
- DEFAULT_LOCK_FILENAME = (DEFAULT_FILENAME + '.lock').freeze
- ACTIONS_WHEN_EXISTS = %i(backup overwrite abort)
- ARLI_COMMAND = 'arli'.freeze
- DEFAULT_RESULTS_LIMIT = 0
+ DEFAULT_FILENAME = 'Arlifile'.freeze
+ DEFAULT_LOCK_FILENAME = (DEFAULT_FILENAME + '.lock').freeze
+ ACTIONS_WHEN_EXISTS = %i(backup overwrite abort)
+ ARLI_COMMAND = 'arli'.freeze
+ DEFAULT_RESULTS_LIMIT = 0
+ GENERATE_TEMPLATE_REPO = 'https://github.com/kigster/arli-cmake'
extend Dry::Configurable
# These are populated during the parsing of the params
setting :runtime do
@@ -58,15 +59,23 @@
setting :limit, DEFAULT_RESULTS_LIMIT
setting :output_format, :short
end
end
+ setting :generate do
+ setting :project_name
+ setting :workspace, '.'
+ setting :libs
+ setting :template_repo, GENERATE_TEMPLATE_REPO
+ end
+
# Arlifile
setting :arlifile do
setting :path, ::Dir.pwd
setting :name, ::Arli::Configuration::DEFAULT_FILENAME
setting :lock_name, ::Arli::Configuration::DEFAULT_LOCK_FILENAME
setting :lock_format, :text
+ setting :hash
end
setting :bundle do
setting :library_names, []
end