Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add selection for at bats in Gameday view. Use `j` and `k` to scroll through
at bats and see all the pitches and events for that at bat. [PR 59](https://github.com/mlb-rs/mlbt/pull/59)
- Add a spinning loader when API calls are in flight: [PR 56](https://github.com/mlb-rs/mlbt/pull/56)
- Add configurable logging for API calls: [PR 66](https://github.com/mlb-rs/mlbt/pull/66)

## [0.0.15] - 2025-06-03

Expand Down
59 changes: 53 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mlbt"
version = "0.0.16-alpha.5"
version = "0.0.16-alpha.6"
authors = ["Andrew Schneider <andjschneider@gmail.com>"]
edition = "2024"
license = "MIT"
Expand All @@ -27,8 +27,10 @@ chrono-tz = { version = "0.10.3", features = ["serde"] }
crossterm = "0.29.0"
directories = "6.0.0"
indexmap = "2.9.0"
mlb-api = { path = "api", version = "0.0.16" }
log = "0.4.27"
mlb-api = { path = "api", version = "0.1.0" }
serde = { version = "1.0.219", features = ["derive"] }
tokio = { version = "1.45.1", features = ["full"] }
toml = "0.8.23"
tui = { package = "ratatui", version = "0.29.0" }
tui-logger = { version = "0.17.3", features = ["crossterm"] }
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ back to the current day, enter `today` or `t`.

- `?`: display help box
- `Esc`: close help box
- `"`: display logs

> If your terminal is too small to display the full help box, the border will be
> displayed red.
Expand All @@ -239,7 +240,7 @@ directory. For a user named `Alice` this would be:

- `favorite_team`: This will make that team always show up first in the schedule
if they have a game that day.
See [here](https://github.com/mlb-rs/mlbt/blob/main/src/components/constants.rs#L21)
See [here](https://github.com/mlb-rs/mlbt/blob/main/src/components/constants.rs#L37)
for options (note: use the full name and not the short name).
- `timezone`: This will change the time zone of the start time for the games in
the schedule. The default is `US/Pacific`. Some common options are:
Expand All @@ -249,13 +250,17 @@ directory. For a user named `Alice` this would be:
* `US/Eastern`
* For the full list
see [here](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)
- `log_level`: Set the log level to be displayed. If not present, `error` level
is used. Use a lowercase word, e.g. `debug`. See [here](https://github.com/mlb-rs/mlbt/blob/main/src/config.rs#L16)
for the options.

### Example config

```toml
# See https://github.com/mlb-rs/mlbt#config for options
favorite_team = "Chicago Cubs"
timezone = "US/Pacific"
log_levl = "error"
```

## Shout out
Expand Down
4 changes: 2 additions & 2 deletions api/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[package]
name = "mlb-api"
version = "0.0.16"
version = "0.1.0"
authors = ["Andrew Schneider <andjschneider@gmail.com>"]
edition = "2024"

[dependencies]
chrono = "0.4.41"
derive_builder = "0.20.2"
reqwest = { version = "0.12.19", features = ["json"] }
reqwest = { version = "0.12.20", features = ["json"] }
serde = { version = "1.0.219", features = ["derive"] }
serde_json = "1.0.140"

Expand Down
Loading