Crates.io | dyer-cli |
lib.rs | dyer-cli |
version | 0.6.0 |
source | src |
created_at | 2021-04-13 11:51:38.606736 |
updated_at | 2022-07-27 05:49:23.296785 |
description | dyer-cli is a great tool created to guide you use dyer fast and at ease, helps you build a robust crawler, data processor, netwrok program fast and correctly. |
homepage | https://crates.io/crates/dyer-cli |
repository | https://github.com/HomelyGuy/dyer-cli |
max_upload_size | |
id | 382839 |
size | 45,116 |
Dyer-cli is a great tool created to guide you use dyer fast and at ease, helps you build a robust crawler, data processor, netwrok program fast and correctly.
Dyer-cli is built completely by Rust programming language without extra dependencies, So rust must be installed beforehand, to test it with:
rustup --version
if you ever see some infomation like that
rustup 1.23.1 (3df2264a9 2020-11-30)
then you are ready to go, the following code would suffice.
cargo install dyer-cli
the command will download the source code and complie it to build a executable file inside your $HOME/.cargo/bin
, make sure it's in your $PATH
Dyer-cli provides some commands that helps you initialize, debug programm, more commands are to go.
This command helps you initialize a project with log level Info
, other log levels vares from Error
, Warn
, Info
, Debug
, and Trace
, and its structure is
|___Cargo.toml
|___Readme.md
|___data/
|___data/tasks/
|___src/
|___src/entity.rs
|___src/parser.rs
|___src/actor.rs
|___src/middleware.rs
|___src/pipeline.rs
Alias dyer c
, A warper of cargo check
, if you run it the first time,dyer-cli
will download the crates and then check the code.
Alias dyer f
, A wraper of cargo fix
, if some warning happens such as unused import
or dead code
the command does a lot for you. However it won't help if some errors occur, if so, you have to debug the code manually.
Alias dyer r
, A wraper of cargo run
, when the program compiles, run it.
Alias dyer b
, A wraper of cargo build
, build the program.
Alias dyer t
, A wraper of cargo test
, test the program.
A wraper of cargo clean
, clean the directory.