feat: Nyanpasu Misc

This commit is contained in:
keiko233
2023-11-12 00:09:32 +08:00
parent 3459a16b48
commit 91074bebd6
19 changed files with 41 additions and 40 deletions

View File

@@ -58,7 +58,7 @@ impl IClashTemp {
help::save_yaml(
&dirs::clash_path()?,
&self.0,
Some("# Generated by Clash Verge"),
Some("# Generated by Clash Nyanpasu"),
)
}

View File

@@ -57,7 +57,7 @@ impl Config {
help::save_yaml(
&runtime_path,
&Config::clash().latest().0,
Some("# Clash Verge Runtime"),
Some("# Clash Nyanpasu Runtime"),
)?;
}
}
@@ -78,7 +78,7 @@ impl Config {
.as_ref()
.ok_or(anyhow!("failed to get runtime config"))?;
help::save_yaml(&path, &config, Some("# Generated by Clash Verge"))?;
help::save_yaml(&path, &config, Some("# Generated by Clash Nyanpasu"))?;
Ok(path)
}

View File

@@ -69,7 +69,7 @@ impl IProfiles {
help::save_yaml(
&dirs::profiles_path()?,
self,
Some("# Profiles Config for Clash Verge"),
Some("# Profiles Config for Clash Nyanpasu"),
)
}

View File

@@ -143,7 +143,7 @@ impl IVerge {
/// Save IVerge App Config
pub fn save_file(&self) -> Result<()> {
help::save_yaml(&dirs::verge_path()?, &self, Some("# Clash Verge Config"))
help::save_yaml(&dirs::verge_path()?, &self, Some("# Clash Nyanpasu Config"))
}
/// patch verge config