gitlink-cli/skills/gitlink-user/examples/user-workflow.md

40 lines
708 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 用户信息完整工作流示例
**场景**:开发者需要查看 GitLink 用户信息。
## 工作流步骤
### Step 1查看当前用户信息
```bash
# 查看当前登录用户
gitlink-cli auth status
```
### Step 2查看其他用户信息
```bash
# 通过 Raw API 获取用户信息
gitlink-cli api GET /users/me --format json
# 获取指定用户信息
gitlink-cli api GET /users/<username> --format json
```
### Step 3搜索用户
```bash
# 通过搜索命令查找用户
gitlink-cli search +users --keyword "zhangsan"
```
---
## 完整命令速览
```bash
gitlink-cli auth status
gitlink-cli api GET /users/me --format json
gitlink-cli search +users --keyword "<keyword>"
```