From 8c2d3f7f4e182d3b71867fe8f36937a0c4fa33f4 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sat, 8 Oct 2022 14:39:56 +0530 Subject: [PATCH] feat(just): add systemd things and cleanup --- justfile | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/justfile b/justfile index f879e01..daea725 100644 --- a/justfile +++ b/justfile @@ -8,20 +8,35 @@ alias t := test set positional-arguments := true set dotenv-load := true -build type="": - cargo build {{ type }} +_default: + just --list -check type="": - cargo check {{ type }} +build *args: + cargo build {{ args }} -clippy flags="": - cargo clippy -- {{ flags }} +check *args: + cargo check {{ args }} + +clippy *args: + cargo clippy {{ args }} fmt: cargo fmt +log: + journalctl --user -xeu clipboard-substitutor.service + run type="": cargo run {{ type }} -test: - cargo nextest run +start: + systemctl --user start clipboard-substitutor.service + +status: + systemctl --user status clipboard-substitutor.service + +stop: + systemctl --user stop clipboard-substitutor.service + +test *args: + cargo nextest run {{ args }}