-
Notifications
You must be signed in to change notification settings - Fork 250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: added Head command #730
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
besides the review comments, there're left over comments -mostly in tests-, could please take another look at them.
Enhancements to `head` command and bug fixes - Added `version-id` and `raw` flags to the `head` command - Fixed issue with metadata printing - Added new tests
The code change corrects a typo in the storage class value in the S3 storage module. The variable `storageClassStr` was misspelled as "STANDART" instead of "STANDARD". This commit fixes the typo to ensure the correct storage class value is used. Note: This suggested commit message follows the convention observed in the recent repository commits.
Support for displaying metadata in the command output.
The regex in the expected output of the head_test.go file has been updated to account for different orderings of key-value pairs in the metadata. This change ensures that the test passes regardless of the order in which the key-value pairs are printed.
Hello, we have decided with @ilkinulas that all outputs should be in JSON format, so some parts have been changed in this PR. I would really appreciate it if you could review it again. |
The code change removes the unused code that was setting the relative path in the `Run` method of the `Head` struct.
very interested in this. when is next release @ilkinulas @igungor @seruman ? |
This pull request adds the
head
command to the program. Closes #682.The
head
command is designed to check if a file exists without downloading the object or bucket itself. It retrieves metadata from an object without returning the object itself. This operation is useful for users who are only interested in an object's metadata.Usage:
Check if a bucket exists
Check if a file exists and retrieve its metadata