Update name to TeaTui

This commit is contained in:
JasterV 2025-08-19 23:24:13 +02:00
parent c4f3cf4759
commit 3b18e005ea
12 changed files with 22 additions and 23 deletions

View file

@ -25,8 +25,8 @@ jobs:
- name: Update crate version
id: update-version
run: |
cargo set-version -p ratatui-elm $GITHUB_REF_NAME
cargo set-version -p teatui $GITHUB_REF_NAME
- name: Publish crate
run: |
# Publish the crate using the updated version from the previous step
cargo publish -p ratatui-elm --token ${{ secrets.CRATES_IO_TOKEN }}
cargo publish -p teatui --token ${{ secrets.CRATES_IO_TOKEN }}

20
Cargo.lock generated
View file

@ -128,7 +128,7 @@ dependencies = [
"color-eyre",
"crossterm 0.29.0",
"ratatui",
"ratatui-elm",
"teatui",
]
[[package]]
@ -529,15 +529,6 @@ dependencies = [
"unicode-width 0.2.0",
]
[[package]]
name = "ratatui-elm"
version = "0.1.0"
dependencies = [
"color-eyre",
"crossterm 0.29.0",
"ratatui",
]
[[package]]
name = "redox_syscall"
version = "0.5.17"
@ -687,6 +678,15 @@ dependencies = [
"unicode-ident",
]
[[package]]
name = "teatui"
version = "0.1.0"
dependencies = [
"color-eyre",
"crossterm 0.29.0",
"ratatui",
]
[[package]]
name = "thread_local"
version = "1.1.9"

View file

@ -1,6 +1,6 @@
[workspace]
resolver = "3"
members = ["ratatui-elm", "examples/*"]
members = ["teatui", "examples/*"]
[workspace.package]
authors = ["JasterV <49537445+JasterV@users.noreply.github.com>"]

View file

@ -1,4 +1,6 @@
# Ratatui Elm
# TeaTui
> Tea = The Elm Architecture
This is an experimental project that aims to build an Elm-like framework for TUI development in Rust on top of [Ratatui](https://github.com/ratatui/ratatui).
@ -10,9 +12,6 @@ I want to minimize the usage of mutability and build the most pure functional TU
I feel that Elm has always been a great example to follow when it comes to building frontend in a pure-functional style, and so I will try to reproduce it in here.
## How does it work
The state of your application is represented by a single type called the Model.
@ -45,7 +44,7 @@ The users of this framework only need to provide:
### Examples
You can find a folder with example projects in the [examples](https://github.com/JasterV/ratatui-elm/tree/main/examples) folder.
You can find a folder with example projects in the [examples](https://github.com/JasterV/teatui/tree/main/examples) folder.
## License

View file

@ -9,4 +9,4 @@ authors.workspace = true
color-eyre.workspace = true
crossterm.workspace = true
ratatui.workspace = true
ratatui-elm = { path = "../../ratatui-elm" }
teatui = { path = "../../teatui" }

View file

@ -5,11 +5,11 @@ use ratatui::{
text::Line,
widgets::{Block, Paragraph},
};
use ratatui_elm::{Update, View};
use teatui::{Update, View};
fn main() -> Result<()> {
color_eyre::install()?;
let result = ratatui_elm::start(Model::default(), update, view, run_effects);
let result = teatui::start(Model::default(), update, view, run_effects);
result
}

View file

@ -1,5 +1,5 @@
[package]
name = "ratatui-elm"
name = "teatui"
version = "0.1.0"
description = "An elm-like abstraction over Ratatui"
license.workspace = true

View file

@ -30,7 +30,7 @@
//!
//! ### Examples
//!
//! You can find a folder with example projects in the [examples](https://github.com/JasterV/ratatui-elm/tree/main/examples) folder.
//! You can find a folder with example projects in the [examples](https://github.com/JasterV/teatui/tree/main/examples) folder.
use color_eyre::Report;
use color_eyre::Result;
use std::{