Class: Bcli::Commands::Bookmarks

Inherits:
Thor
  • Object
show all
Defined in:
lib/bcli/commands/bookmarks.rb,
lib/bcli/commands/bookmarks/create.rb,
lib/bcli/commands/bookmarks/search.rb

Defined Under Namespace

Classes: Create, Search

Instance Method Summary collapse

Instance Method Details

#createObject



25
26
27
28
29
30
31
32
# File 'lib/bcli/commands/bookmarks.rb', line 25

def create(*)
  if options[:help]
    invoke :help, ["create"]
  else
    require_relative "bookmarks/create"
    Bcli::Commands::Bookmarks::Create.new(options).execute
  end
end

#searchObject



13
14
15
16
17
18
19
20
# File 'lib/bcli/commands/bookmarks.rb', line 13

def search
  if options[:help]
    invoke :help, ["search"]
  else
    require_relative "bookmarks/search"
    Bcli::Commands::Bookmarks::Search.new(options).execute
  end
end