lib/troo/cli/main.rb in troo-0.0.10 vs lib/troo/cli/main.rb in troo-0.0.11

- old
+ new

@@ -1,8 +1,9 @@ module Troo module CLI class Main < ThorFixes + # @return [String] desc 'status', 'Get troo status.' def status say heading('Status:') say Commands::Status.dispatch(Troo::Board) @@ -16,17 +17,19 @@ else say 'Unknown. Run `troo refresh all`.' end end + # @return [String] desc 'config', 'Show the current configuration.' def config say heading('Current configuration:') say Troo.configuration.view end + # @return [String] desc 'cleanup', 'Removes all local data.' def cleanup if yes?('This will remove all local data, are you sure?') Ohm.redis.flushdb @@ -34,10 +37,11 @@ else say "\n" + 'No local data has been removed.' end end + # @return [String] desc 'version', 'Print the version.' def version say "troo #{Troo::VERSION}" end @@ -57,9 +61,13 @@ desc 'refresh [all|board|list|card] (<id>)', 'Refresh all local data or board, list or card with <id>.' subcommand :refresh, CLI::Refresh + # @param [String] + # @param [String] + # @param [String] + # @return [String] desc 'move <card_id> <list_id> (<board_id>)', 'Move card with <card_id> to list with <list_id> ' \ 'optionally to another board with <board_id>.' def move(card_id, list_id, board_id = nil) say Commands::Move::Card.dispatch(card_id, list_id, board_id)