- auth: login/logout/status with Personal Access Token - repo: list/create/view/clone/delete - issue: list/create/view/close/comment - pr: list/create/view/merge/close - release: list/create - org: list - api: raw API call with --field/--query/--paginate Features: - TypeScript + ESM - commander.js CLI parsing - Node built-in fetch (no axios) - Auto-detect owner/repo from git remote (gitee.com) - GITEE_TOKEN env var priority over config file - --json flag for machine-readable output - --page/--per-page pagination support - Friendly error messages (401/403/404) - Config stored at ~/.config/gitee-cli/config.json
29 lines
591 B
JSON
29 lines
591 B
JSON
{
|
|
"name": "gitee-cli",
|
|
"version": "0.1.0",
|
|
"description": "Gitee (码云) command-line tool — like gh, but for Gitee",
|
|
"type": "module",
|
|
"bin": {
|
|
"gitee": "./dist/cli.js"
|
|
},
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"dev": "tsx src/cli.ts",
|
|
"prepublishOnly": "npm run build"
|
|
},
|
|
"keywords": ["gitee", "cli", "git", "vcs"],
|
|
"author": "小橘",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"commander": "^12.1.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^20.14.0",
|
|
"tsx": "^4.15.7",
|
|
"typescript": "^5.5.2"
|
|
},
|
|
"engines": {
|
|
"node": ">=18.0.0"
|
|
}
|
|
}
|