docs: update README with new install usage
This commit is contained in:
38
README.md
38
README.md
@@ -106,32 +106,30 @@ PaddedCell/
|
|||||||
└── README.zh-CN.md # Chinese version
|
└── README.zh-CN.md # Chinese version
|
||||||
```
|
```
|
||||||
|
|
||||||
## Development
|
## Installation
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Clone
|
# Install
|
||||||
git clone https://git.hangman-lab.top/nav/PaddedCell.git
|
node install.mjs --install
|
||||||
cd PaddedCell
|
|
||||||
|
|
||||||
# Build pass_mgr (requires Go)
|
# Uninstall
|
||||||
cd pass_mgr
|
node install.mjs --uninstall
|
||||||
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
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Branches
|
## Usage
|
||||||
|
|
||||||
- `main` - Main branch
|
### pass_mgr
|
||||||
- `dev/zhi` - Development branch
|
|
||||||
|
```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
|
## License
|
||||||
|
|
||||||
|
|||||||
@@ -106,32 +106,30 @@ PaddedCell/
|
|||||||
└── README.zh-CN.md # 本文档 (简体中文)
|
└── README.zh-CN.md # 本文档 (简体中文)
|
||||||
```
|
```
|
||||||
|
|
||||||
## 开发
|
## 安装
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Clone
|
# 安装
|
||||||
git clone https://git.hangman-lab.top/nav/PaddedCell.git
|
node install.mjs --install
|
||||||
cd PaddedCell
|
|
||||||
|
|
||||||
# Build pass_mgr (需要 Go)
|
# 卸载
|
||||||
cd pass_mgr
|
node install.mjs --uninstall
|
||||||
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
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## 分支
|
## 使用
|
||||||
|
|
||||||
- `main` - 主分支
|
### pass_mgr
|
||||||
- `dev/zhi` - 开发分支
|
|
||||||
|
```bash
|
||||||
|
# 初始化(首次使用前必须执行)
|
||||||
|
~/.openclaw/bin/pass_mgr admin init
|
||||||
|
|
||||||
|
# 设置密码
|
||||||
|
~/.openclaw/bin/pass_mgr set mykey mypassword
|
||||||
|
|
||||||
|
# 获取密码
|
||||||
|
~/.openclaw/bin/pass_mgr get mykey
|
||||||
|
```
|
||||||
|
|
||||||
## 许可证
|
## 许可证
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user