lib/filerary/command.rb in filerary-0.0.5 vs lib/filerary/command.rb in filerary-0.0.6
- old
+ new
@@ -7,10 +7,15 @@
desc "version", "Show version number"
def version
puts VERSION
end
+ desc "list", "List filenames in the collection"
+ def list
+ puts Filerary::Librarian.new.list
+ end
+
desc "collect FILE...", "Collect files (takes time)"
def collect(*files)
Filerary::Librarian.new.collect(files)
end
@@ -20,8 +25,13 @@
end
desc "cleanup", "Remove deleted files in the collection"
def cleanup
Filerary::Librarian.new.cleanup
+ end
+
+ desc "remove PATH", "Remove a file in the collection"
+ def remove(path)
+ Filerary::Librarian.new.remove(path)
end
end
end