Crates.io | kurapika |
lib.rs | kurapika |
version | 0.1.1 |
source | src |
created_at | 2022-09-13 09:40:59.716053 |
updated_at | 2022-09-13 12:29:54.668801 |
description | A software license tool |
homepage | |
repository | https://github.com/endruz/kurapika |
max_upload_size | |
id | 664454 |
size | 43,350 |
A software license tool。
cargo install kurapika
# Help for the Generate Authorization Code command
$ kr-approver -h
kurapika 0.1.0
endruz <endruz@foxmail.com>
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 <endruz@foxmail.com>
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 !!!
Licensed under the MIT License.