Class: ReadwiseCurator::CLI
- Inherits:
-
Thor
- Object
- Thor
- ReadwiseCurator::CLI
- Includes:
- CLIHelpers
- Defined in:
- lib/readwise_curator/cli.rb
Defined Under Namespace
Classes: BookPaginator
Class Method Summary collapse
Instance Method Summary collapse
Methods included from CLIHelpers
#clear_screen, #display_book_count, #display_highlight_instructions, #get_category_icon, #handle_empty_highlights, #handle_no_selection, #log_save_success, #show_pagination_header
Class Method Details
.exit_on_failure? ⇒ Boolean
15 16 17 |
# File 'lib/readwise_curator/cli.rb', line 15 def self.exit_on_failure? true end |
Instance Method Details
#curate ⇒ Object
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/readwise_curator/cli.rb', line 22 def curate prompt = TTY::Prompt.new site = setup_site loop do action = prompt_for_action case action when :browse browse_resources(prompt, site) when :search search_resources(prompt, site) when :update update_readwise_data(site) when :quit Bridgetown.logger.info "Goodbye!" exit end end end |