From 77e560c9ed2707c4b891db68bf2c67e5bd46a3b6 Mon Sep 17 00:00:00 2001 From: PThorpe92 Date: Mon, 30 Oct 2023 13:29:34 -0400 Subject: [PATCH 1/2] fix: crashing on keys menu when enter is pressed but no keys found. --- src/screens/home.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/screens/home.rs b/src/screens/home.rs index 04dcdcd..2f44d82 100644 --- a/src/screens/home.rs +++ b/src/screens/home.rs @@ -1,7 +1,6 @@ use super::render::handle_screen_defaults; use crate::app::App; use crate::request::command::Cmd; -use crate::request::curl::Curl; use crate::request::wget::Wget; use crate::screens::screen::Screen; use tui::backend::Backend; From 5dc109901f4d9e7b40fcf7e2463569ed5485996c Mon Sep 17 00:00:00 2001 From: PThorpe92 Date: Mon, 30 Oct 2023 14:23:48 -0400 Subject: [PATCH 2/2] docs: add description for publishing on crates.io --- Cargo.toml | 8 ++++---- README.md | 16 ++++++++++++++++ 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 244767b..a2684c6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,8 @@ [package] -name = "CuTE-tui" # crates.io/crates/CuTE is taken :( -version = "0.1.0" +name = "CuTE-tui" # crates.io/crates/CuTE is taken :( +version = "0.0.9" authors = ["PThorpe92 "] +description = "A (ratatui) TUI for HTTP requests with libcurl, recursive downloads with wget, command storage and API key management" license = "GPL-3.0" edition = "2021" @@ -10,7 +11,6 @@ name = "cute" path = "src/main.rs" [dependencies] -cross = "*" crossterm = "0.27.0" tui = { package = "ratatui", features = [ "crossterm", @@ -18,7 +18,7 @@ tui = { package = "ratatui", features = [ "serde", "macros", ], version = "0.23.0" } -tui-input = "*" +tui-input = "0.8.0" tui-widget-list = "0.3.0" lazy_static = "1.4.0" rusqlite = { version = "0.29.0", features = ["bundled"] } diff --git a/README.md b/README.md index 62b3725..a3cfaef 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,21 @@ This tool is for when you don't need something as complex as Postman, but you al ## Installation +#### Prebuilt binaries for Windows and x86_64 Linux are available on the [Releases](https://github.com/PThorpe92/CuTE/tags) page. + +### Install with Cargo: + +- **Prerequisites**: Make sure you have Rust and Cargo installed on your system. + + 1. `cargo install cute_tui` + + 2. make sure that your `~/.cargo/bin` directory is in your PATH + + 3. `cute` or `cute --dump-config .` # this will put a config.toml file in your cwd. You can edit this and place it + in a dir `CuTE` in your `~/.config/` path (see below) to customize the colors of the application. + + +### Build from source: 1. **Prerequisites**: Make sure you have Rust and Cargo installed on your system. 2. **Clone the Repository**: Clone this repository to your local machine using the following command: @@ -59,6 +74,7 @@ This tool is for when you don't need something as complex as Postman, but you al ##### cute [OPTIONAL] '--dump-config ' or '--db-path <'/PATH/to/cute.db'>' - **--dump-config**: Dumps the default config.toml file to the specified path. If no path is specified, it will output it to the current working directory. + - This `config.toml` file needs to be placed in `~/.config/CuTE/{config.toml}` in order for the application to read it. - currently the config file can only specify basic colors of the application, and the path to the sqlite database. More options will be added in the future. - **--db-path**: Specify the path to the sqlite database. If no path is specified, it will default to `data_local_dir` working directory.(~/.local/share/CuTE/CuTE.db or the windows/macos equivalent)