mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-20 20:34:19 +00:00
fix(check): report failed update checks as failures (#643)
Return nonzero exit status for failed skill and agent checks while preserving JSON results. Propagate agent remote errors and prioritize dashboard check failures over the up-to-date summary. Add regression coverage and document exit status in all command reference locales. Related to runkids/skillshare-app#85.
This commit is contained in:
@@ -37,6 +37,10 @@ result=$(skillshare check --json)
|
||||
# Parse JSON to detect outdated skills
|
||||
```
|
||||
|
||||
## Exit Status
|
||||
|
||||
`check` exits with code `1` if any checked item has status `error` (for example, an unreachable remote or a missing local source). Available updates, stale items, and local modifications alone do not cause failure. With `--json`, stdout still contains the complete results; inspect each item's `status` and `message` for details.
|
||||
|
||||
## What It Does
|
||||
|
||||
`check` inspects your source directory and reports update status for:
|
||||
|
||||
@@ -37,6 +37,10 @@ result=$(skillshare check --json)
|
||||
# JSON をパースして古い Skill を検出する
|
||||
```
|
||||
|
||||
## 終了ステータス
|
||||
|
||||
確認した項目のいずれかが `error` の場合(リモートに接続できない、ローカルのソースが存在しないなど)、`check` はコード `1` で終了します。更新あり、Stale、ローカルの変更だけでは失敗になりません。`--json` 使用時も stdout にすべての結果を出力します。各項目の `status` と `message` を確認してください。
|
||||
|
||||
## 実行内容
|
||||
|
||||
`check` は Source ディレクトリを調べ、以下について更新状況を報告します。
|
||||
|
||||
@@ -37,6 +37,10 @@ result=$(skillshare check --json)
|
||||
# Parse JSON to detect outdated skills
|
||||
```
|
||||
|
||||
## 종료 상태
|
||||
|
||||
검사한 항목 중 하나라도 상태가 `error`이면(예: 원격 저장소에 연결할 수 없거나 로컬 소스가 없음) `check`는 코드 `1`로 종료합니다. 사용 가능한 업데이트, 오래된 항목, 로컬 수정만으로는 실패하지 않습니다. `--json`을 사용해도 stdout에 전체 결과가 출력됩니다. 각 항목의 `status`와 `message`를 확인하세요.
|
||||
|
||||
## 동작 내용
|
||||
|
||||
`check`는 source 디렉터리를 검사하여 다음 항목의 업데이트 상태를 보고합니다.
|
||||
|
||||
+4
@@ -37,6 +37,10 @@ result=$(skillshare check --json)
|
||||
# 解析 JSON 以检测过时的 skills
|
||||
```
|
||||
|
||||
## 退出状态
|
||||
|
||||
只要任一检查项的状态为 `error`(例如无法连接远程仓库或本地来源不存在),`check` 就会以代码 `1` 退出。仅有可用更新、过时项目或本地修改不会导致失败。使用 `--json` 时,stdout 仍包含完整结果;请查看各项的 `status` 和 `message`。
|
||||
|
||||
## 它做了什么
|
||||
|
||||
`check` 会检查你的 source 目录,并报告以下内容的更新状态:
|
||||
|
||||
+4
@@ -37,6 +37,10 @@ result=$(skillshare check --json)
|
||||
# 解析 JSON 以偵測過期的 skills
|
||||
```
|
||||
|
||||
## 結束狀態
|
||||
|
||||
只要任一受檢項目的狀態為 `error`(例如無法連線遠端或本機來源不存在),`check` 就會以代碼 `1` 結束。僅有可用更新、過期項目或本機修改不會造成失敗。使用 `--json` 時,stdout 仍會包含完整結果;請查看各項目的 `status` 與 `message`。
|
||||
|
||||
## 執行內容
|
||||
|
||||
`check` 會檢查你的 source 目錄,並回報以下項目的更新狀態:
|
||||
|
||||
Reference in New Issue
Block a user