Class: Overscribe::CLI::Collections
- Inherits:
-
Thor
- Object
- Thor
- Overscribe::CLI::Collections
- 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(.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(.merge(pattern: pattern)).keys.join "\n" end |