diff --git a/README.md b/README.md index 82bc81a..cd5dba7 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ _Side note:_ Theme colors depend on your terminal preferences. menu -## Local time +## Local time (footer) menu @@ -80,15 +80,15 @@ Options: --blink Toggle blink mode to animate a clock when it reaches its finished mode. [possible values: on, off] --log [] Directory to store log file. If not set, standard application log directory is used (check README for details). -h, --help Print help + -V, --version Print version ``` Extra option (if `--features sound` is enabled by local build only): ```sh - --sound Path to sound file (.mp3 or .wav) to play as notification. Experimental. +--sound Path to sound file (.mp3 or .wav) to play as notification. Experimental. ``` - # Installation ## Cargo @@ -113,12 +113,10 @@ Install [from the AUR](https://aur.archlinux.org/packages/timr/): paru -S timr ``` - ## Release binaries Pre-built artifacts are available to download from [latest GitHub release](https://github.com/sectore/timr-tui/releases). - # Development ## Requirements @@ -129,7 +127,6 @@ Pre-built artifacts are available to download from [latest GitHub release](https If you have [`direnv`](https://direnv.net) installed, run `direnv allow` once to install dependencies. In other case run `nix develop`. - ### Non Nix users - [`Rust`](https://www.rust-lang.org/learn/get-started) @@ -161,8 +158,10 @@ Available recipes: demo-timer # build demo: timer [alias: dt] [dev] - run # run app [alias: r] - run-sound path # run app while sound feature is enabled. It expects a path to a sound file. [alias: rs] + run # run app [alias: r] + run-args args # run app with arguments. It expects arguments as a string (e.g. "-c 5:00"). [alias: ra] + run-sound path # run app while sound feature is enabled. It expects a path to a sound file. [alias: rs] + run-sound-args path args # run app while sound feature is enabled by adding a path to a sound file and other arguments as string (e.g. "-c 5:00"). [alias: rsa] [misc] format # format files [alias: f] @@ -175,6 +174,7 @@ Available recipes: ### Build - Linux + ```sh nix build # or for bulding w/ statically linked binaries @@ -182,10 +182,17 @@ nix build .#linuxStatic ``` - Windows (cross-compilation) + ```sh nix build .#windows ``` +### Run tests + +```sh +cargo test +``` + # Misc. ## Persistant app state