Skip to content

Commit

Permalink
Move template to subtemplate named simple
Browse files Browse the repository at this point in the history
  • Loading branch information
joshka committed Dec 15, 2023
1 parent 4e44b39 commit a119009
Show file tree
Hide file tree
Showing 13 changed files with 16 additions and 295 deletions.
1 change: 1 addition & 0 deletions .markdownlint.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
line-length = { line_length = 100 }
281 changes: 0 additions & 281 deletions Cargo.lock

This file was deleted.

25 changes: 13 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# `ratatui-template` 🧀
# Ratatui templates 🧀

A template for bootstrapping a Rust [**TUI**](https://en.wikipedia.org/wiki/Text-based_user_interface) application with [`Ratatui`](https://github.com/ratatui-org/ratatui) & [`crossterm`](https://github.com/crossterm-rs/crossterm).

<img src="https://raw.githubusercontent.com/ratatui-org/ratatui/b33c878808c4c40591d7a2d9f9d94d6fee95a96f/examples/demo2.gif" width="600">
This repository contains templates for bootstrapping a Rust
[**TUI**](https://en.wikipedia.org/wiki/Text-based_user_interface) application with
[`Ratatui`](https://github.com/ratatui-org/ratatui) &
[`crossterm`](https://github.com/crossterm-rs/crossterm).

## Project structure

```
```text
src/
├── app.rs -> holds the state and application logic
├── event.rs -> handles the terminal events (key press, mouse click, resize, etc.)
Expand All @@ -21,15 +22,15 @@ src/

1. Install [`cargo-generate`](https://github.com/cargo-generate/cargo-generate#installation)

```sh
cargo install cargo-generate
```
```shell
cargo install cargo-generate
```

2. Clone this repository via `cargo-generate`:
2. Create a new app based on this repository:

```sh
cargo generate --git https://github.com/ratatui-org/ratatui-template --name <project-name>
```
```shell
cargo generate ratatui-org/ratatui-template simple
```

## See also

Expand Down
2 changes: 1 addition & 1 deletion cargo-generate.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# configuration for https://cargo-generate.github.io/cargo-generate/

[template]
ignore = ["README.md", ".github/"]
sub_templates = ["simple"]
File renamed without changes.
2 changes: 1 addition & 1 deletion Cargo.toml → simple/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ license = "MIT"
edition = "2021"

[dependencies]
crossterm = "0.26.1"
crossterm = "0.27.0"
ratatui = "0.24.0"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit a119009

Please sign in to comment.