-
Notifications
You must be signed in to change notification settings - Fork 1
chore(cli): add npm publish metadata and package readme #17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| # confession-cli | ||
|
|
||
| Confession 的命令列工具,可在專案中快速初始化 `.confession` 並觸發掃描。 | ||
|
|
||
| ## 安裝 | ||
|
|
||
| ```bash | ||
| npm i -g confession-cli | ||
| ``` | ||
|
|
||
| ## 指令 | ||
|
|
||
| ```bash | ||
| confession init | ||
| confession scan | ||
| confession list --status open | ||
| confession status | ||
| ``` | ||
|
|
||
| ## 可用參數 | ||
|
|
||
| - `confession scan --api <baseUrl>`:指定 API 位址(預設讀取 `.confession/config.json`) | ||
| - `confession scan --depth quick|standard|deep`:覆寫掃描深度 | ||
| - `confession list --status <open|fixed|ignored>` | ||
| - `confession list --severity <critical|high|medium|low|info>` | ||
| - `confession list --search <keyword>` | ||
|
|
||
| ## 專案根目錄解析 | ||
|
|
||
| - 優先使用 `CONFESSION_PROJECT_ROOT` | ||
| - 未設定時使用 `process.cwd()` | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,13 +1,40 @@ | ||||||
| { | ||||||
| "name": "confession-cli", | ||||||
| "version": "0.1.0", | ||||||
| "description": "Confession CLI", | ||||||
| "description": "CLI for Confession security scanner", | ||||||
| "keywords": [ | ||||||
| "confession", | ||||||
| "security", | ||||||
| "vulnerability", | ||||||
| "scanner", | ||||||
| "cli" | ||||||
| ], | ||||||
| "homepage": "https://github.com/BlackishGreen33/Confession/tree/main/confession-cli", | ||||||
| "bugs": { | ||||||
| "url": "https://github.com/BlackishGreen33/Confession/issues" | ||||||
| }, | ||||||
| "repository": { | ||||||
| "type": "git", | ||||||
| "url": "git+https://github.com/BlackishGreen33/Confession.git" | ||||||
| }, | ||||||
| "engines": { | ||||||
| "node": ">=18" | ||||||
| }, | ||||||
| "license": "MIT", | ||||||
| "bin": { | ||||||
| "confession": "bin/confession.js" | ||||||
| }, | ||||||
| "files": [ | ||||||
| "bin", | ||||||
| "dist", | ||||||
| "README.md" | ||||||
| ], | ||||||
| "publishConfig": { | ||||||
| "access": "public" | ||||||
| }, | ||||||
| "scripts": { | ||||||
| "lint": "eslint .", | ||||||
| "build": "node -e \"const fs=require('fs');fs.mkdirSync('dist',{recursive:true});fs.copyFileSync('bin/confession.js','dist/confession.js')\"" | ||||||
| "build": "node -e \"const fs=require('fs');fs.mkdirSync('dist',{recursive:true});fs.copyFileSync('bin/confession.js','dist/confession.js')\"", | ||||||
| "prepublishOnly": "pnpm build" | ||||||
|
||||||
| "prepublishOnly": "pnpm build" | |
| "prepublishOnly": "npm run build" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The README documents
confession scan --depth quick|standard|deepas an override, but the current CLI implementation only treatsquickanddeepas explicit overrides (passing--depth standardis ignored and falls back to config). Please align the documentation with actual behavior, or update the CLI to acceptstandardexplicitly.