Skip to content

Commit

Permalink
build(just): add justfile for common tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
LGUG2Z committed Oct 28, 2021
1 parent 29a6c39 commit 2f7ae6f
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
42 changes: 42 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
set shell := ["cmd.exe", "/C"]
export RUST_BACKTRACE := "full"

clean:
cargo clean

fmt:
cargo +nightly fmt
cargo +nightly clippy
prettier --write README.md

install-komorebic:
cargo +stable install --path komorebic --locked

install-komorebi:
cargo +stable install --path komorebic --locked

install:
just install-komorebic
just install-komorebi
komorebic ahk-library
cat '%USERPROFILE%\komorebic.lib.ahk' > komorebic.lib.sample.ahk

run:
just install-komorebic
cargo +stable run --bin komorebi --locked

warn $RUST_LOG="warn":
just run

info $RUST_LOG="info":
just run

debug $RUST_LOG="debug":
just run

trace $RUST_LOG="trace":
just run

deadlock $RUST_LOG="trace":
just install-komorebic
cargo +stable run --bin komorebi --locked --features deadlock_detection
2 changes: 1 addition & 1 deletion komorebic.lib.sample.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -246,4 +246,4 @@ ToggleFocusFollowsMouse(implementation) {

AhkLibrary() {
Run, komorebic.exe ahk-library, , Hide
}
}

0 comments on commit 2f7ae6f

Please sign in to comment.