From 15474eee48eb028a06f7b6a392a44e0494efe60b Mon Sep 17 00:00:00 2001 From: zhi Date: Thu, 5 Mar 2026 11:50:28 +0000 Subject: [PATCH] docs: update README with new install usage --- README.md | 38 ++++++++++++++++++-------------------- README.zh-CN.md | 38 ++++++++++++++++++-------------------- 2 files changed, 36 insertions(+), 40 deletions(-) diff --git a/README.md b/README.md index a0510a2..3f64860 100644 --- a/README.md +++ b/README.md @@ -106,32 +106,30 @@ PaddedCell/ └── README.zh-CN.md # Chinese version ``` -## Development +## Installation ```bash -# Clone -git clone https://git.hangman-lab.top/nav/PaddedCell.git -cd PaddedCell +# Install +node install.mjs --install -# Build pass_mgr (requires Go) -cd pass_mgr -go build -o pass_mgr src/main.go - -# Build pcexec (requires Node.js) -cd ../pcexec -npm install -npm run build - -# Build safe-restart (requires Node.js) -cd ../safe-restart -npm install -npm run build +# Uninstall +node install.mjs --uninstall ``` -## Branches +## Usage -- `main` - Main branch -- `dev/zhi` - Development branch +### pass_mgr + +```bash +# Initialize (required before first use) +~/.openclaw/bin/pass_mgr admin init + +# Set password +~/.openclaw/bin/pass_mgr set mykey mypassword + +# Get password +~/.openclaw/bin/pass_mgr get mykey +``` ## License diff --git a/README.zh-CN.md b/README.zh-CN.md index 8cfa4ee..6fa0ef1 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -106,32 +106,30 @@ PaddedCell/ └── README.zh-CN.md # 本文档 (简体中文) ``` -## 开发 +## 安装 ```bash -# Clone -git clone https://git.hangman-lab.top/nav/PaddedCell.git -cd PaddedCell +# 安装 +node install.mjs --install -# Build pass_mgr (需要 Go) -cd pass_mgr -go build -o pass_mgr src/main.go - -# Build pcexec (需要 Node.js) -cd ../pcexec -npm install -npm run build - -# Build safe-restart (需要 Node.js) -cd ../safe-restart -npm install -npm run build +# 卸载 +node install.mjs --uninstall ``` -## 分支 +## 使用 -- `main` - 主分支 -- `dev/zhi` - 开发分支 +### pass_mgr + +```bash +# 初始化(首次使用前必须执行) +~/.openclaw/bin/pass_mgr admin init + +# 设置密码 +~/.openclaw/bin/pass_mgr set mykey mypassword + +# 获取密码 +~/.openclaw/bin/pass_mgr get mykey +``` ## 许可证