diff --git a/CHANGELOG.md b/CHANGELOG.md index bb87822..97eb0f7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## Unreleased +## 2023-03-19 0.1.5 + +- Remove spinner once it stops + ## 2023-03-19 0.1.4 - Add `--echo` option diff --git a/Cargo.lock b/Cargo.lock index 60823e0..21c07df 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -379,7 +379,7 @@ dependencies = [ [[package]] name = "gpto" -version = "0.1.4" +version = "0.1.5" dependencies = [ "chrono", "chrono-tz", diff --git a/Cargo.toml b/Cargo.toml index 8426b78..594b72a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "gpto" -version = "0.1.4" +version = "0.1.5" authors = ["Alan Vardy "] edition = "2021" license = "MIT" diff --git a/PUBLISH_CHECKLIST.md b/PUBLISH_CHECKLIST.md index 7fb0ccb..6b98e0b 100644 --- a/PUBLISH_CHECKLIST.md +++ b/PUBLISH_CHECKLIST.md @@ -34,7 +34,7 @@ cargo aur 11. [Create a new release](https://github.com/alanvardy/gpto/releases/new) -- Make sure to use the label and title in format `v0.1.3` +- Make sure to use the label and title in format `v0.1.5` - Add binary from gpto directory 12. Publish to Cargo @@ -59,6 +59,6 @@ mv PKGBUILD ../gpto-bin/ rm *.tar.gz cd ../gpto-bin/ git add . -git commit -m v0.1.4 +git commit -m v0.1.5 git push aur ``` diff --git a/src/request.rs b/src/request.rs index 405cf6e..ae0de10 100644 --- a/src/request.rs +++ b/src/request.rs @@ -122,7 +122,7 @@ fn post_openai(token: String, url: String, body: serde_json::Value) -> Result Result { .send() .or(Err("Did not get response from server"))?; sp.stop(); - println!("\n\n"); + print!("\x1b[2K\r"); if response.status().is_success() { Ok((response.text()).or(Err("Could not read response text"))?)