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

@@ -18,7 +18,7 @@ impl Clone for ApiProps {
}
pub fn get_api_props() -> ApiProps {
let remote = match config::get("remote") {
let remote = match config::get_remote("origin") {
Some(r) => r,
None => {
eprintln!("fatal: unable to find a remote");