feat(drive): add OWNER column to ls/search output#458
Open
laihenyi wants to merge 5 commits intosteipete:mainfrom
Open
feat(drive): add OWNER column to ls/search output#458laihenyi wants to merge 5 commits intosteipete:mainfrom
laihenyi wants to merge 5 commits intosteipete:mainfrom
Conversation
Add shortcutDetails to the Drive Get API fields to enable resolving shortcut target file IDs and MIME types. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Request the `owners` field from the Drive API in list/search calls and display the primary owner's email in a new OWNER column in the plain/table output. JSON output already included the full owners array via the driveGet path; this change brings parity to the listing commands so users can identify file ownership at a glance, which is especially useful in shared drives. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ownersfield from the Drive API indrive lsanddrive searchlist callsdriveGetpath; this brings parity to listing commandsThis is useful for identifying file ownership at a glance, especially in shared drives where files may belong to different users.
Changes
internal/cmd/drive_listing.go: AddedownerstodriveFileListFields, addedOWNERcolumn to table output, addeddriveOwnerEmail()helperTest plan
makebuilds successfullygo test ./internal/cmd/ -run TestDrive— 72 tests passgog drive ls --parent <folder>shows OWNER columngog drive search <query>shows OWNER columngog drive ls --jsonincludes owners in output🤖 Generated with Claude Code