feat: add external CLI support for image upload/delete #481
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
-uand-dflagsStorageinterface to abstract image storage (Google Drive vs external CLI){{mime}},{{id}},{{env.XXX}}) in upload/delete commandsDECK_UPLOAD_MIMEandDECK_DELETE_IDare passed to external commandsMotivation
This provides a workaround for #372.
In restricted Google Workspace environments where public file sharing is prohibited, Google Drive cannot be used for image storage. This feature allows users to use alternative storage backends (e.g., GCS, S3) via external CLI tools.
Usage
External CLI Protocol
Upload command:
DECK_UPLOAD_MIMEcontains the MIME type{{mime}}is also availableDelete command:
DECK_DELETE_IDcontains the uploaded ID{{id}}is also availableExample Implementation
reprint - A GCS-based image storage CLI that implements this protocol
Test plan
🤖 Generated with Claude Code