diff --git a/.gitignore b/.gitignore index 7557d16a..98466f50 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ /target .idea +.local dev.db phodal.dev examples/blog/* diff --git a/Cargo.toml b/Cargo.toml index 737c022e..3a0cd7fb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,7 @@ quake_core = { path = "quake_core", version = "0.1.0" } quake_tui = { path = "quake_tui", version = "0.1.0" } # cli parser -clap = "3.0.0-beta.5" +clap = { version = "3.0.0-beta.5", features = ["derive"] } config = { version = "0.11", features = ["yaml"] } regex = "1.0" @@ -62,7 +62,7 @@ async-std = "1.10.0" tracing = "0.1" tracing-subscriber = "0.2" -syntect = { version = "4.2", default-features = false, features = ["default-fancy"]} +syntect = { version = "4.2", default-features = false, features = ["default-fancy"] } [features] webserver = [] diff --git a/README.md b/README.md index 4f7cd3c6..40fdaabd 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,13 @@ quake tui ### CLI +0. install + +```bash +git clone https://github.com/phodal/quake && cd quake +cargo install --path . # or: just install +``` + 1. add entry by type ```bash diff --git a/justfile b/justfile index d9ccfc60..6b2bf635 100644 --- a/justfile +++ b/justfile @@ -3,6 +3,9 @@ setup: rustup component add llvm-tools-preview --toolchain nightly cargo install cargo-llvm-cov +install: + cargo install --path . + build: cargo build --all diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 00000000..ca87585c --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,5 @@ +[toolchain] +channel = "stable-2021-10-21" +components = ["rustfmt", "clippy", "llvm-tools-preview"] +targets = ["wasm32-unknown-unknown"] +profile = "minimal" \ No newline at end of file