began changes

This commit is contained in:
Tristan Ancelet 2024-05-24 08:54:04 -05:00
parent f433321fb8
commit 1d546c93b1

View File

@ -18,7 +18,8 @@ Actions:
list : List all Bucket entries list : List all Bucket entries
list-files : List all files/paths that have been backed up to the bucket list-files : List all files/paths that have been backed up to the bucket
get <entry-hash> : Get the content of a specific entry (by hash) get <entry-hash> : Get the content of a specific entry (by hash)
restore <entry-hash> : Restore previous state of file stored in bucket (by-hash) restore-hash <entry-hash> : Restore previous state of file stored in bucket (by-hash)
restore-file <filepath> : Restore previous state of file stored in bucket (by-filepath/filename)
Global Flags: Global Flags:
-d | --debug : Set debug flag -d | --debug : Set debug flag
@ -243,12 +244,7 @@ end
def search_entries_paths (bucket) def search_entries_paths (bucket)
log "user entered" log "user entered"
bucket.entries.each_value do |entry| puts bucket.entries.each_value.select {|entry| entry.path_include? $CONFIG[:search_term]}.map{|entry| entry.inline_info}.sort.join("\n")
log "checking Entry[#{entry.hash}]"
if entry.path_include? $CONFIG[:search_term]
puts entry.inline_info
end
end
end end
def get_content_of_entry_hash (bucket) def get_content_of_entry_hash (bucket)