feat(config): create a proper config file with proper settings manipulation

This commit is contained in:
grimhilt
2024-02-20 21:25:21 +01:00
parent 6a11bb494b
commit 287953c086
13 changed files with 328 additions and 142 deletions

View File

@@ -24,7 +24,7 @@ impl Copy {
pub fn set_url_copy(&mut self, url: &str, destination: &str) -> &mut Copy {
self.api_builder.build_request(Method::from_bytes(b"COPY").unwrap(), url);
let remote = match config::get("remote") {
let remote = match config::get_remote("origin") {
Some(r) => r,
None => {
eprintln!("fatal: unable to find a remote");