Skip to content

Commit

Permalink
v0.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
alanvardy committed Mar 19, 2023
1 parent 01474e6 commit 19fa5f2
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "gpto"
version = "0.1.4"
version = "0.1.5"
authors = ["Alan Vardy <[email protected]>"]
edition = "2021"
license = "MIT"
Expand Down
4 changes: 2 additions & 2 deletions PUBLISH_CHECKLIST.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
```
4 changes: 2 additions & 2 deletions src/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ fn post_openai(token: String, url: String, body: serde_json::Value) -> Result<St
.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"))?)
Expand All @@ -144,7 +144,7 @@ fn get_openai(token: String, url: String) -> Result<String, String> {
.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"))?)
Expand Down

0 comments on commit 19fa5f2

Please sign in to comment.