lib/arli/configuration.rb in arli-0.8.3 vs lib/arli/configuration.rb in arli-0.9.0
- old
+ new
@@ -7,11 +7,11 @@
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 = 100
+ DEFAULT_RESULTS_LIMIT = 0
extend Dry::Configurable
# These are populated during the parsing of the params
setting :runtime do
@@ -41,10 +41,11 @@
end
# Global flags
setting :debug, ENV['ARLI_DEBUG'] || false
setting :trace, false
+ setting :no_color, false
setting :dry_run, false
setting :verbose, false
setting :help, false
setting :quiet, false
@@ -53,19 +54,19 @@
setting :argument
setting :default_field, :name
setting :results do
setting :attrs
setting :limit, DEFAULT_RESULTS_LIMIT
- setting :format, :inspect
+ setting :output_format, :short
end
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, :json
+ setting :lock_format, :text
end
setting :bundle do
setting :library_names, []
end