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
|
- name: Update crate version
|
||||||
id: update-version
|
id: update-version
|
||||||
run: |
|
run: |
|
||||||
cargo set-version -p ratatui-elm $GITHUB_REF_NAME
|
cargo set-version -p teatui $GITHUB_REF_NAME
|
||||||
- name: Publish crate
|
- name: Publish crate
|
||||||
run: |
|
run: |
|
||||||
# Publish the crate using the updated version from the previous step
|
# 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",
|
"color-eyre",
|
||||||
"crossterm 0.29.0",
|
"crossterm 0.29.0",
|
||||||
"ratatui",
|
"ratatui",
|
||||||
"ratatui-elm",
|
"teatui",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
|
@ -529,15 +529,6 @@ dependencies = [
|
||||||
"unicode-width 0.2.0",
|
"unicode-width 0.2.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "ratatui-elm"
|
|
||||||
version = "0.1.0"
|
|
||||||
dependencies = [
|
|
||||||
"color-eyre",
|
|
||||||
"crossterm 0.29.0",
|
|
||||||
"ratatui",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "redox_syscall"
|
name = "redox_syscall"
|
||||||
version = "0.5.17"
|
version = "0.5.17"
|
||||||
|
|
@ -687,6 +678,15 @@ dependencies = [
|
||||||
"unicode-ident",
|
"unicode-ident",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "teatui"
|
||||||
|
version = "0.1.0"
|
||||||
|
dependencies = [
|
||||||
|
"color-eyre",
|
||||||
|
"crossterm 0.29.0",
|
||||||
|
"ratatui",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "thread_local"
|
name = "thread_local"
|
||||||
version = "1.1.9"
|
version = "1.1.9"
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[workspace]
|
[workspace]
|
||||||
resolver = "3"
|
resolver = "3"
|
||||||
members = ["ratatui-elm", "examples/*"]
|
members = ["teatui", "examples/*"]
|
||||||
|
|
||||||
[workspace.package]
|
[workspace.package]
|
||||||
authors = ["JasterV <49537445+JasterV@users.noreply.github.com>"]
|
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).
|
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.
|
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
|
## How does it work
|
||||||
|
|
||||||
The state of your application is represented by a single type called the Model.
|
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
|
### 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
|
## License
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,4 +9,4 @@ authors.workspace = true
|
||||||
color-eyre.workspace = true
|
color-eyre.workspace = true
|
||||||
crossterm.workspace = true
|
crossterm.workspace = true
|
||||||
ratatui.workspace = true
|
ratatui.workspace = true
|
||||||
ratatui-elm = { path = "../../ratatui-elm" }
|
teatui = { path = "../../teatui" }
|
||||||
|
|
|
||||||
|
|
@ -5,11 +5,11 @@ use ratatui::{
|
||||||
text::Line,
|
text::Line,
|
||||||
widgets::{Block, Paragraph},
|
widgets::{Block, Paragraph},
|
||||||
};
|
};
|
||||||
use ratatui_elm::{Update, View};
|
use teatui::{Update, View};
|
||||||
|
|
||||||
fn main() -> Result<()> {
|
fn main() -> Result<()> {
|
||||||
color_eyre::install()?;
|
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
|
result
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
[package]
|
[package]
|
||||||
name = "ratatui-elm"
|
name = "teatui"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
description = "An elm-like abstraction over Ratatui"
|
description = "An elm-like abstraction over Ratatui"
|
||||||
license.workspace = true
|
license.workspace = true
|
||||||
|
|
@ -30,7 +30,7 @@
|
||||||
//!
|
//!
|
||||||
//! ### Examples
|
//! ### 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::Report;
|
||||||
use color_eyre::Result;
|
use color_eyre::Result;
|
||||||
use std::{
|
use std::{
|
||||||
Loading…
Reference in a new issue