一键导入
tpsp-cli-http
CLI, HTTP fetch, service filtering, terminal table output, and JSON output guidance for tpsp. Use when modifying cmd/tpsp/main.go behavior or tests.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
CLI, HTTP fetch, service filtering, terminal table output, and JSON output guidance for tpsp. Use when modifying cmd/tpsp/main.go behavior or tests.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Local development workflow for the tpsp Go CLI. Use when orienting in the workspace, choosing build/test commands, validating CLI behavior, or changing release/package files.
Use when committing or pushing changes in this repository. Create focused commits matching tpsp history, push only when requested, and push tags whenever pushing release work.
| name | tpsp-cli-http |
| description | CLI, HTTP fetch, service filtering, terminal table output, and JSON output guidance for tpsp. Use when modifying cmd/tpsp/main.go behavior or tests. |
Use this skill when changing runtime behavior in cmd/tpsp/main.go.
The command shape is:
tpsp [service] [flags]
Supported services are metro, cptm, viamobilidade, and viaquatro.
Supported flags are -j/--json, -v/--version, --copyright, and
-h/--help. Unknown flags and invalid services should fail with a clear message
on stderr and a non-zero exit.
https://www.tictrens.com.br/helper/line-statuses.status: false API
responses as errors.httptest and inject the endpoint
or HTTP client if fetch behavior is refactored.{
"code": 200,
"data": [
{
"line": "Azul",
"status": "Opera\u00e7\u00e3o Normal"
}
],
"message": "success"
}
line field unless fixtures prove
the upstream format changed.When behavior changes, cover at least the closest pure helpers first:
prefix - name input;Add HTTP tests when changing fetch behavior, timeout handling, or decode/error paths.