implemented proper error handling, added README

This commit is contained in:
2026-06-26 12:30:19 +02:00
parent 649c08ad4b
commit 481e3a1dcc
8 changed files with 203 additions and 68 deletions
+3 -1
View File
@@ -1,8 +1,10 @@
use std::process::Command;
use anyhow::Result;
use crate::{config::parse::GLOBAL_CONNECTION_PATH, env::config::DevToolsConf};
pub fn toggle_index(start: bool, config: &DevToolsConf) -> Result<(), Box<dyn std::error::Error>> {
pub fn toggle_index(start: bool, config: &DevToolsConf) -> Result<()> {
let change: &str = match start {
true => "--assume-unchanged",
false => "--no-assume-unchanged",