Class: Evernotable::Command::Help

Inherits:
Base
  • Object
show all
Defined in:
lib/evernotable/command/help.rb

Instance Method Summary collapse

Methods inherited from Base

#authenticate_user, #initialize, #invoke_client, #note_client

Methods included from Utilities

#display, #encrypt_key, #error, #format_with_bang, #output_with_bang, #read_from_file, #wrap_enml, #write_to_file

Constructor Details

This class inherits a constructor from Evernotable::Command::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method_name, *args) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/evernotable/command/help.rb', line 5

def method_missing(method_name, *args)
  case method_name
  when :help then
    display 'Evernotable is a simple commandline task/todo manager that uses Evernote note store.'
    display 'This automatically creates a new distinct Evernote notebook for persistance of tasks. Users can add new tasks, list them and remove existing tasks after authenticating using their Evernote credentials.'
    display '--------------------------------------------'
    display '# authenticate 
    evernotable auth login
    evernotable auth logout'
    display '# add a new task
    evernotable task add shave my beard!'
    display '# list all existing tasks
    evernotable task list'
    display '# remove an existing task
    evernotable task remove #2 => removes task listed #2'
    display '--------------------------------------------'
  end
end