feat(drive): add Drive client foundation and parent command#67
Conversation
Add foundational infrastructure for Google Drive support: - Add drive.DriveReadonlyScope to OAuth scopes - Create internal/drive package with Client, interfaces, and File types - Create internal/cmd/drive package with parent command and 'files' alias - Register drive command in root Closes #61
Test Coverage AssessmentSummaryThis PR adds the Drive client foundation and parent command. While the OAuth scope change is covered by an updated test, the new What's Tested
What's Missing Tests1. This file contains business logic that should be tested:
2. The 3. The parent command is minimal scaffolding, but RecommendationThe pure functions in
The client methods can wait until subcommands are added, as long as the interface is used for testability. VerdictAcceptable for merge with follow-up expected. This is foundation code and the architecture (interfaces, factory pattern) supports future testability. However, I'd recommend adding tests for |
Cover ParseFile, GetTypeName, and IsGoogleWorkspaceFile with tests for various edge cases including empty/malformed timestamps and different MIME types.
|
Added unit tests for |
Summary
drive.DriveReadonlyScopeto OAuth scopes ininternal/auth/auth.gointernal/drive/package with Drive API client, interfaces, and File typesinternal/cmd/drive/package with parent command andfilesaliasTest Plan
gro drive --helpshows help textgro files --helpworks as aliasmake verifypassesCloses #61