项目文件夹

文件
wehub-resource-sync bb5c75ce05
Component Security Validation / Security Audit (push) Has been cancelled
Deploy to Cloudflare Pages / deploy (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:38:58 +08:00

1 行
2.8 KiB
JSON

{"content": "---\nallowed-tools: Bash, Read, Write, Edit\nargument-hint: [resource] [method] [flags]\ndescription: Google Apps Script: Upload local files to an Apps Script project.\n---\n\n# Google Workspace Apps Script Push\n\nExecute Google Workspace Apps Script Push operations: $ARGUMENTS\n\n## Prerequisites\n\n- Google Workspace CLI (`gws`) must be installed\n- Authentication configured: Run `gws auth status` to verify\n- Review `gws apps-script-push --help` for all available commands\n\n## Available Resources and Methods\n\n# apps-script +push\n\n> **PREREQUISITE:** Read `../gws-shared/SKILL.md` for auth, global flags, and security rules. If missing, run `gws generate-skills` to create it.\n\nUpload local files to an Apps Script project\n\n## Usage\n\n```bash\ngws apps-script +push --script <ID>\n```\n\n## Flags\n\n| Flag | Required | Default | Description |\n|------|----------|---------|-------------|\n| `--script` | ✓ | — | Script Project ID |\n| `--dir` | — | — | Directory containing script files (defaults to current dir) |\n\n## Examples\n\n```bash\ngws script +push --script SCRIPT_ID\ngws script +push --script SCRIPT_ID --dir ./src\n```\n\n## Tips\n\n- Supports .gs, .js, .html, and appsscript.json files.\n- Skips hidden files and node_modules automatically.\n- This replaces ALL files in the project.\n\n> [!CAUTION]\n> This is a **write** command — confirm with the user before executing.\n\n## See Also\n\n- [gws-shared](../gws-shared/SKILL.md) — Global flags and auth\n- [gws-apps-script](../gws-apps-script/SKILL.md) — All manage and execute apps script projects commands\n\n## Usage\n\n```bash\n# List available resources and methods\ngws apps-script-push --help\n\n# Inspect method schema before calling\ngws schema apps-script-push.<resource>.<method>\n\n# Execute command with arguments\ngws apps-script-push $ARGUMENTS\n```\n\n## Task\n\nExecute the requested Apps Script Push operation: $ARGUMENTS\n\n1. **Verify Prerequisites**\n - Check `gws` is installed: `gws --version`\n - Verify authentication: `gws auth status`\n - Review available commands: `gws apps-script-push --help`\n\n2. **Inspect Method Schema**\n - Before calling any method, inspect its parameters\n - Use `gws schema` to understand required fields\n - Review parameter types and constraints\n\n3. **Execute Operation**\n - Build command with appropriate flags\n - Use `--params` for query/path parameters\n - Use `--json` for request body\n - Handle pagination with `--max-results` or `--page-token`\n\n4. **Error Handling**\n - Check command output for errors\n - Review API quotas and rate limits\n - Handle authentication issues\n - Retry transient failures\n\n---\n\n**License**: Apache License 2.0\n**Source**: [Google Workspace CLI](https://github.com/googleworkspace/cli)\n**Original Skill**: `gws-apps-script-push`\n"}