glean-shortcuts
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineseglean shortcuts
glean shortcuts
PREREQUISITE: Readfor auth, global flags, and security rules.../glean-shared/SKILL.md
Manage Glean shortcuts (go-links). Subcommands: list, get, create, update, delete.
bash
glean shortcuts <subcommand> [flags]前提条件: 阅读了解认证、全局标志和安全规则。../glean-shared/SKILL.md
管理Glean快捷方式(go-links)。子命令包括:list、get、create、update、delete。
bash
glean shortcuts <subcommand> [flags]Subcommands
子命令
| Subcommand | Description |
|---|---|
| Create a new shortcut |
| Delete a shortcut |
| Get a specific shortcut |
| List all shortcuts |
| Update an existing shortcut |
| 子命令 | 描述 |
|---|---|
| 创建新的快捷方式 |
| 删除快捷方式 |
| 获取特定快捷方式 |
| 列出所有快捷方式 |
| 更新现有快捷方式 |
Flags
标志
| Flag | Type | Default | Description |
|---|---|---|---|
| boolean | false | Print request without sending |
| string | JSON request body (see Glean API docs for shape) | |
| json | ndjson | text | json |
| 标志 | 类型 | 默认值 | 描述 |
|---|---|---|---|
| 布尔值 | false | 打印请求但不发送 |
| 字符串 | JSON请求体(格式请参考Glean API文档) | |
| json | ndjson | text | json |
Examples
示例
bash
glean shortcuts list | jq '.results[].inputAlias'
glean shortcuts create --json '{"data":{"inputAlias":"test/link","destinationUrl":"https://example.com"}}'bash
glean shortcuts list | jq '.results[].inputAlias'
glean shortcuts create --json '{"data":{"inputAlias":"test/link","destinationUrl":"https://example.com"}}'Discovering Commands
命令探索
bash
undefinedbash
undefinedShow machine-readable schema for this command
显示该命令的机器可读模式
glean schema shortcuts
glean schema shortcuts
List all available commands
列出所有可用命令
glean schema | jq '.commands'
undefinedglean schema | jq '.commands'
undefined