Crates.io | wsvc |
lib.rs | wsvc |
version | 0.1.9 |
source | src |
created_at | 2023-09-20 18:21:41.274585 |
updated_at | 2023-11-10 14:32:10.373037 |
description | WebSocket Simple Version Control tool. |
homepage | https://github.com/ret2shell/wsvc |
repository | https://github.com/ret2shell/wsvc |
max_upload_size | |
id | 978399 |
size | 138,669 |
Challenge deployment tool for Ret2Shell platform.
[!WARNING]
The design purpose of this library and tool is to make it more convenient to upload and manage CTF challenges. However, its version control functionality is not well-designed and lacks sufficient test cases to ensure reliability. Therefore, it is NOT RECOMMENDED to use it for actual project management! Git and other version control tools that have undergone long-term development are always a BETTER choice!
这个库与工具的设计目的是为了更方便的上传与管理 CTF 题目,其版本控制功能从设计上来说并不完善,同时也没有足够的测试用例来保证可靠性,请不要在实际的项目管理中使用!Git 与其他经历了长时间发展的版本控制工具始终是更好的选择!
cargo build --release --bin wsvc --features=cli
the binary cli could be found at target/release/wsvc
.
you can use wsvc new <repo name>
to init a new repository. if you already have a project, you can use wsvc init
inside the project directory to init a new repository.
before use it, you maybe need to configure some basic actions, such as author name and checkout default action.
wsvc config set commit.author [Author] --global # set author name
wsvc config set commit.auto_record [true/false] --global # set default checkout action
wsvc config set auth.account [account] --global # set account of origin, not affect if you use local server
wsvc config set auth.passwd [passwd] --global # set password of origin, not affect if you use local server
if commit.auto_record
is enabled, wsvc checkout
will automatically commit a record if the workspace is dirty.
wsvc does not have stage area or other cache designs, wsvc commit
is more likely to take a snapshot of the current project. you can use wsvc commit
to commit a record directly.
wsvc commit -m "commit message" [-a author]
you can use wsvc logs
to list all records. the skip
and limit
options are used to control the number of records displayed.
by default, skip = 0
and limit = 10
, these options are not necessary.
wsvc logs --skip 0 --limit 10
if you want to checkout to some record, you can use wsvc checkout [hash prefix]
to do it.
wsvc checkout 1234567
if you want to checkout to the latest record, you can use wsvc checkout
without any arguments.
wsvc checkout
noticed that wsvc
could accept any length of hex strings, if there are multiple records with the same prefix, wsvc
will report an error and list all possible records.