mirror of
https://codeberg.org/JasterV/teatui.git
synced 2026-04-26 18:10:03 +00:00
Update name to TeaTui
This commit is contained in:
parent
c4f3cf4759
commit
3b18e005ea
12 changed files with 22 additions and 23 deletions
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
|
|
@ -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
20
Cargo.lock
generated
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
[workspace]
|
||||
resolver = "3"
|
||||
members = ["ratatui-elm", "examples/*"]
|
||||
members = ["teatui", "examples/*"]
|
||||
|
||||
[workspace.package]
|
||||
authors = ["JasterV <49537445+JasterV@users.noreply.github.com>"]
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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" }
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
[package]
|
||||
name = "ratatui-elm"
|
||||
name = "teatui"
|
||||
version = "0.1.0"
|
||||
description = "An elm-like abstraction over Ratatui"
|
||||
license.workspace = true
|
||||
|
|
@ -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::{
|
||||
Loading…
Reference in a new issue