Initial commit

This commit is contained in:
Zhongwei Li
2025-11-29 18:23:24 +08:00
commit 30bbbc890a
10 changed files with 1323 additions and 0 deletions

39
commands/drive-search.md Normal file
View File

@@ -0,0 +1,39 @@
---
description: Search Google Drive files and folders
argument-hint: name
---
Search for files and folders in Google Drive.
## Usage
```bash
google-gmail-tool drive search [--name "NAME"] [--type TYPE]
```
## Arguments
- `--name "NAME"`: Search by file/folder name
- `--type TYPE`: Filter by type (document, spreadsheet, folder, pdf)
- `--owner me|others|anyone`: Filter by owner
- `--shared`: Show only shared files
- `-n N`: Max results (default: 50)
- `--text`: Output in text format
- `-v/-vv/-vvv`: Verbosity (INFO/DEBUG/TRACE)
## Examples
```bash
# Search by name
google-gmail-tool drive search --name "report"
# Find PDFs I own
google-gmail-tool drive search --type pdf --owner me
# Find shared spreadsheets
google-gmail-tool drive search --type spreadsheet --shared
```
## Output
Returns JSON array with id, name, mimeType, size, modified, webViewLink.