Class: Overscribe::CLI::Collections

Inherits:
Thor
  • Object
show all
Defined in:
lib/overscribe/cli.rb

Instance Method Summary collapse

Instance Method Details

#fetch(pattern = nil) ⇒ Object



18
19
20
# File 'lib/overscribe/cli.rb', line 18

def fetch(pattern = nil)
  Overscribe.fetch_collections(options.merge(pattern: pattern))
end

#list(pattern = nil) ⇒ Object



23
24
25
# File 'lib/overscribe/cli.rb', line 23

def list(pattern = nil)
  puts Overscribe.list_collections(options.merge(pattern: pattern)).keys.join "\n"
end