Class: Bcli::Commands::Snippets

Inherits:
Thor
  • Object
show all
Defined in:
lib/bcli/commands/snippets.rb,
lib/bcli/commands/snippets/create.rb,
lib/bcli/commands/snippets/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/snippets.rb', line 25

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

#searchObject



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

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