1 个不稳定版本
0.1.1 | 2022年9月13日 |
---|---|
0.1.0 |
|
#1048 in 身份验证
23KB
456 行
kurapika
软件许可证工具。
安装
cargo install kurapika
用法
# Help for the Generate Authorization Code command
$ kr-approver -h
kurapika 0.1.0
endruz <[email protected]>
A software license tool
USAGE:
kr-approver [OPTIONS] <FILE>
ARGS:
<FILE> Path to registration file
OPTIONS:
-h, --help Print help information
-s, --show Print authentication information
-V, --version Print version information
# Registration file structure
$ cat reg.toml
app_name = "XXX-service"
customer_name = "XXXX公司"
deploy_date = "2022-09-01"
expire_date = "2022-09-30"
# Generate authorization code
$ kr-approver reg.toml
Generate auth code successfully!
# Generate authorization code and display authentication information
# subject to actual output
$ kr-approver -s reg.toml
Generate auth code successfully!
Print authentication information:
app_name = "XXX-service"
customer_name = "XXXX公司"
deploy_date = "2022-09-01"
expire_date = "2022-09-30"
base_board_id = "****************"
cpu_id = "** ** ** ** ** ** ** **"
# Help for the Verify Authorization Code command
$ kr-checker -h
kurapika 0.1.0
endruz <[email protected]>
A software license tool
USAGE:
kr-checker
OPTIONS:
-h, --help Print help information
-V, --version Print version information
# Verify authorization code
$ kr-checker
Verification passed !!!
许可证
根据 MIT 许可证 授权。
依赖项
~12MB
~211K SLoC