This commit is contained in:
Jens K.
2024-12-14 18:24:51 +01:00
committed by GitHub
parent 6c7bedabe3
commit b7d6a6c139
7 changed files with 268 additions and 54 deletions

View File

@@ -1,9 +1,9 @@
# tim:r
**Pronounced `/ˈɪmə/` or `/ˈtaɪmər/`.** Other just say `timer`.
**Pronounced `/ˈɪmə/` or `/ˈtaɪmər/`.**
> [!WARNING]
> _Everything is still WIP_ 😎
> _Still WIP_
# About
@@ -21,47 +21,37 @@ It's built with [`ratatui`](https://ratatui.rs/) ([Rust](https://www.rust-lang.o
_soon_
# Installation
# Args
## Build from source
```sh
Usage: timr [OPTIONS]
### Requirements
Options:
-c, --countdown <COUNTDOWN> Countdown time to start from. Format: 'ss', 'mm:ss', or 'hh:mm:ss' [default: 10:00]
-w, --work <WORK> Work time to count down from. Format: 'ss', 'mm:ss', or 'hh:mm:ss' [default: 25:00]
-p, --pause <PAUSE> Pause time to count down from. Format: 'ss', 'mm:ss', or 'hh:mm:ss' [default: 5:00]
-h, --help Print help
```
#### Nix (recommend)
# Build from source
## Requirements
### Nix (recommend)
`cd` into root directory.
If `direnv` is installed, run `direnv allow` once to install dependencies. Others run `nix develop`.
[`direnv`](https://direnv.net) users run `direnv allow` once to install dependencies. Others run `nix develop`.
#### Non Nix user
### Non Nix user
- [`Rust`](https://www.rust-lang.org/learn/get-started)
- [`Clippy`](https://github.com/rust-lang/rust-clippy)
- [`rustfmt`](https://github.com/rust-lang/rustfmt)
- [`just`](https://just.systems)
#### Run
```sh
cargo run
```
#### Build
- Linux
```sh
nix build
```
- Windows (cross-compilation)
```sh
nix build .#windows
```
#### Commands to `run`, `build` etc.
### Commands to `run`, `lint`, `format` etc.
```sh
just --list
@@ -80,6 +70,18 @@ Available recipes:
t # alias for `test`
```
### Build
- Linux
```sh
nix build
```
- Windows (cross-compilation)
```sh
nix build .#windows
```
# Misc.
## Logs