mirror of
https://github.com/Lydanne/spaceflow.git
synced 2026-03-12 04:02:45 +08:00
chore: 初始化仓库
This commit is contained in:
34
docs/guide/commands/ci-shell.md
Normal file
34
docs/guide/commands/ci-shell.md
Normal file
@@ -0,0 +1,34 @@
|
||||
# ci-shell — Shell 执行
|
||||
|
||||
`ci-shell` 命令用于在 CI 环境中执行自定义 Shell 命令。
|
||||
|
||||
## 安装
|
||||
|
||||
```bash
|
||||
spaceflow install @spaceflow/ci-shell
|
||||
```
|
||||
|
||||
## 基本用法
|
||||
|
||||
```bash
|
||||
# 执行 Shell 命令
|
||||
spaceflow ci-shell --command "npm test"
|
||||
|
||||
# CI 模式
|
||||
spaceflow ci-shell --command "npm run build" --ci
|
||||
```
|
||||
|
||||
## 使用场景
|
||||
|
||||
- 在 CI 中执行任意 Shell 命令
|
||||
- 通过 GitHub Actions 触发自定义命令
|
||||
- 配合飞书机器人远程执行命令
|
||||
|
||||
## 命令行选项
|
||||
|
||||
| 选项 | 说明 |
|
||||
|------|------|
|
||||
| `--command <cmd>` | 要执行的 Shell 命令 |
|
||||
| `--ci` | CI 模式 |
|
||||
| `--dry-run` | 试运行 |
|
||||
| `--verbose` | 详细日志 |
|
||||
Reference in New Issue
Block a user