ARTICLE DETAIL

资讯详情

深耕网站建设、视觉设计与SEO优化的一线实战洞察。

`<command-path>`

`<command-path>` command-path【免费下载链接】gogcliGoogle Workspace in your terminal.项目地址: https://gitcode.com/GitHub_Trending/gogcl/gogcliGenerated fromgog schema --json. Do not edit this page by hand; runmake docs-commands.help 首段文本Usagecommand-label # 含别名与用法占位符Parent[父命令链接]Subcommands[子命令链接] - 首行帮助ArgumentsNameHelpFlagsFlagTypeDefaultHelpSee Also[父命令链接]Command index以真实页面 [gog-schema.md](https://link.gitcode.com/i/2f79d9862279ed6a8963e6569161760f) 为例它展示了模板各部分的实际形态Usage 一节给出带别名占位符的调用形式 gog schema (help-json,helpjson) [command ...] [flags]Flags 表格中每个 flag 列出了短选项、长选项、别名多名称用 br 分隔、类型与默认值。例如 | Flag | Type | 说明 | | --- | --- | --- | | -a / --account / --acct | string | Account email, alias, or auto for authenticated Google API commands | | -n / --dry-run / --dryrun / --noop / --preview | bool | Do not make changes; print intended actions and exit successfully | | -j / --json / --machine | bool默认 false | Output JSON to stdout (best for scripting) | | --readonly | bool默认 false | Block mutating API requests at runtime; auth add also requests read-only OAuth scopes | | --gmail-no-send | bool默认 false | Block Gmail send operations (agent safety) | | --enable-commands / --enable-commands-exact / --disable-commands | string | 以点路径语法限制/屏蔽命令子树 | | --wrap-untrusted | bool默认 false | JSON/raw 输出中为抓取到的文本字段包裹外部不可信内容标记 | 这张表本身就体现了该文档体系的定位面向脚本与 Agent 的可组合能力--json 稳定性 TSV 输出 --plain、面向安全的运行时约束--readonly、--dry-run、--gmail-no-send、以及面向受限环境的命令面裁剪--enable-commands 系列配合 [safety-profiles/agent-safe.yaml](https://link.gitcode.com/i/111c27115e17a4bcc40fa23de3a9c73c) 等预置安全配置文件使用详见 [docs/safety-profiles.md](https://link.gitcode.com/i/64509ea54d72b097c5ca9f6f4ebaba45)。表格中的 Type/Default 列直接来自 schema 的 type/default/has_default 字段因此与真实行为严格一致。 ## 数据源解剖internal/cmd/schema.go 中的 schema 模型 生成文档的“原料”在 [internal/cmd/schema.go](https://link.gitcode.com/i/0fbc7c8ca498987fde316046c6cee21c)。SchemaCmd第 14–17 行定义 go type SchemaCmd struct { Command []string arg: optional: name:command help:Optional command path to describe (e.g. drive ls). Default: entire CLI IncludeHidden bool name:include-hidden help:Include hidden commands and flags }【免费下载链接】gogcliGoogle Workspace in your terminal.项目地址: https://gitcode.com/GitHub_Trending/gogcl/gogcli创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考
返回列表