class DrJekyll::ListCommand
Public Class Methods
new( catalog, opts )
click to toggle source
# File lib/drjekyll/cli/list.rb, line 8 def initialize( catalog, opts ) @catalog = catalog @opts = opts end
Public Instance Methods
list( filter=nil )
click to toggle source
# File lib/drjekyll/cli/list.rb, line 18 def list( filter=nil ) @catalog.list( filter ) end
run( args )
click to toggle source
# File lib/drjekyll/cli/list.rb, line 13 def run( args ) filter = args[0] ## optional filter (search query) list( filter ) end