Sha256: c3d79cebd7f7915edce1c3ee8f14787d8cee97737c3ef1c1bb4f806b59d7e4b3
Contents?: true
Size: 687 Bytes
Versions: 2
Compression:
Stored size: 687 Bytes
Contents
module Memo class Cli module Command class List def initialize( options, os: Memo::OS.new ) @options = options @os = os @config = Memo::Config.new end def call namespace = @options.namespace is_all = @options.all? type = @options.dir? ? "d" : "f" dir = if is_all "" else Memo::File.new( "", @options.namespace, ).dir end @os.exec "find #{@config.root}/#{dir} -type #{type}" end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ememo-0.2.1 | lib/memo/cli/command/list.rb |
ememo-0.1.8 | lib/memo/cli/command/list.rb |