feat: add drive +files-list for folder contents#67
Open
zfaustk wants to merge 1 commit intolarksuite:mainfrom
Open
feat: add drive +files-list for folder contents#67zfaustk wants to merge 1 commit intolarksuite:mainfrom
zfaustk wants to merge 1 commit intolarksuite:mainfrom
Conversation
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. Thanks for integrating Codecov - We've got you covered ☂️ |
|
wiki 中的内容也需要list功能 |
|
|
5e971a5 to
b0e5655
Compare
b0e5655 to
9ef16a4
Compare
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
This adds a dedicated
drive +files-listshortcut for browsing the contents of a Drive folder without dropping down to schema/raw API calls.What changed
lark-cli drive +files-list--page-token,--page-size,--order-by,--direction)--format jsonWhy
Issue #51 points out that the CLI already has upload/comment/permission helpers in the Drive domain, but no direct way to inspect a folder's contents. This fills that user-facing gap with a read-only shortcut instead of requiring
drive files list --params ....Verification
CGO_ENABLED=0 go test ./shortcuts/drive python3 /skills/larkopen/scripts/larkoapi.py drive files-list -h python3 -m py_compile /skills/larkopen/scripts/larkoapi_drive_ops.py /skills/larkopen/scripts/larkoapi_cli.pyFixes #51.