began changes

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

View File

@ -14,15 +14,16 @@ Description:
search the filebucket and restore from it.
Actions:
search <term> : Search for bucket entries matching a portion of the filepath
list : List all Bucket entries
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)
restore <entry-hash> : Restore previous state of file stored in bucket (by-hash)
search <term> : Search for bucket entries matching a portion of the filepath
list : List all Bucket entries
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)
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:
-d | --debug : Set debug flag
-h | --help : This help message
-d | --debug : Set debug flag
-h | --help : This help message
Author:
Name: Tristan Ancelet
@ -243,12 +244,7 @@ end
def search_entries_paths (bucket)
log "user entered"
bucket.entries.each_value do |entry|
log "checking Entry[#{entry.hash}]"
if entry.path_include? $CONFIG[:search_term]
puts entry.inline_info
end
end
puts bucket.entries.each_value.select {|entry| entry.path_include? $CONFIG[:search_term]}.map{|entry| entry.inline_info}.sort.join("\n")
end
def get_content_of_entry_hash (bucket)