lib/docman/cli.rb in docman-0.0.63 vs lib/docman/cli.rb in docman-0.0.64

- old
+ new

@@ -1,8 +1,9 @@ require 'thor' require 'application' require 'docman/git_util' +require 'json' module Docman class CLI < Thor # TODO: add proper descriptions. @@ -88,9 +89,17 @@ def drush(drush_alias, command) env = drush_alias.partition('.').first.partition('@').last site = drush_alias.partition('.').last Application.instance.drush(env, site, command) say('Complete!', :green) + end + + desc 'info', 'Get info' + method_option :force, :aliases => '-f', :desc => 'Force full rebuild' + option :tag + def info(command, file) + say(Application.instance.info(command, file, options).to_json); + # say('Complete!', :green) end no_commands { def current_dir_has_config_dir File.directory?('config') \ No newline at end of file