lib/relish/commands/config.rb in relish-0.0.8 vs lib/relish/commands/config.rb in relish-0.0.9

- old
+ new

@@ -1,21 +1,24 @@ module Relish module Command class Config < Base - def default - show - end + desc 'display the contents of your options file' + command :default => :show - def show + usage 'config:show' + desc 'display the contents of your options file' + command :show do puts(if File.exists?(Relish.local_options_file) IO.read(Relish.local_options_file) else "No #{Relish.local_options_file} file exists" end) end - def add + usage 'config:add --<option> <value>' + desc 'add a configuration option to your options file' + command :add do OptionsFile.new(Relish.local_options_file).store(@cli_options) end end end \ No newline at end of file