class Syncthing::Helper::CLI::FolderReadCommand
Public Instance Methods
execute()
click to toggle source
Calls superclass method
Syncthing::Helper::CLI::AbstractCommand#execute
# File lib/syncthing/helper/cli/folder_command.rb, line 24 def execute super col = 'folders' docs = API::Firestore.col(col).get.map(&:document_id) res = docs.map do |d| dr = API::Firestore.doc(col + '/' + d).get.data [dr[:id], dr[:path], dr[:label]] end tabled_stdout header: ['Folder Id', 'Path', 'Label'], rows: res end