You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 8, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@
4
4
# Rust TUI HTTP Client with API Key Management
5
5
6
6
#### This project is still in active development and although it is useable, there may still be bugs and significant changes are still needed to both refactor the codebase and add new features.
7
+
#### I am distracted with work and a new project at the moment, so I am not able to put in as much time as I would like here and I am afraid that if I don't open source it now, it will end up in the side-project graveyard. Collaboration is welcome and encouraged, there is LOTS of low-hanging fruit here, while still being a useful tool.
7
8

8
9
9
10
Terminal user interface (TUI) HTTP client in Rust designed to simplify the process of making various types of HTTP requests while supporting various different kinds of Authentication (powered by libcURL), recursive downloading of directories (powered by GNU Wget), and storage + management of your previous requests + API keys.
@@ -78,6 +79,10 @@ This project is licensed under the [GPL3.0 License](LICENSE).
78
79
79
80
---
80
81
81
-
If you have any questions or need assistance, feel free to reach out to [Preston](https://github.com/PThorpe92)
82
+
If you have any questions or need assistance, feel free to [reach out](preston@unlockedlabs.org)
83
+
84
+
**Fun fact:** This project was written in the Maine State Prison system, the main author and 2nd largest contributor are both currently incarcerated. I would like to bring whatever awareness possible to the importance of education and rehabilitation for those 2.2 million Americans currently incarcerated. Access to education and technology is severely limited in the carceral system and I am incredibly fortunate to be in a situation where I am permitted to have remote employment and access to participate in Open source projects. This is incredibly rare, and I am very grateful for the opportunity, but I recognize that this is very much the exception and not the rule. We need to do better as a society.
85
+
86
+
If you are interested in helping support the education of incarcerated and justice-impacted individuals, please consider donating to a company like the one I currently work for, [Unlocked Labs](https://unlockedlabs.org/) or similar non-profits like [The Last Mile](https://thelastmile.org/) or [Recidiviz](https://www.recidiviz.org/)
82
87
83
88
**Disclaimer:** This project is provided as-is, and its creators are not responsible for any misuse or potential security vulnerabilities resulting from the usage of API keys.
std::fs::File::create(&path).expect("failed to create database");
40
+
ifletErr(err) = std::fs::create_dir_all(&_path){
41
+
std::fs::File::create(&_path).expect("failed to create database");
42
42
eprintln!("Failed to create CuTE directory: {}", err);
43
43
}else{
44
-
println!("CuTE directory created at {:?}",path);
44
+
println!("CuTE directory created at {:?}",_path);
45
45
}
46
46
}
47
47
48
48
let conn_result = Connection::open_with_flags(
49
-
path.join("CuTE.db"),
49
+
_path.join("CuTE.db"),
50
50
OpenFlags::SQLITE_OPEN_READ_WRITE
51
51
| OpenFlags::SQLITE_OPEN_CREATE
52
52
| OpenFlags::SQLITE_OPEN_URI
@@ -81,7 +81,7 @@ impl DB {
81
81
}
82
82
83
83
pubfnget_default_path() -> PathBuf{
84
-
letmutdir = data_local_dir().expect("Failed to get data local directory,\nPlease specify a path at $CONFIG/CuTE/config.toml\nOr with the --db_path={path/to/CuTE.db}");
84
+
let dir = data_local_dir().expect("Failed to get data local directory,\nPlease specify a path at $CONFIG/CuTE/config.toml\nOr with the --db_path={path/to/CuTE.db}");
85
85
dir.join("CuTE")
86
86
}
87
87
@@ -226,5 +226,4 @@ impl SavedKey {
226
226
pubfnfrom_json(json:&str) -> Result<Self>{
227
227
Ok(serde_json::from_str(json).expect("Failed to deserialize"))
0 commit comments