Mountain/IPC/DevLog/AliasPath.rs
1#![allow(non_snake_case)]
2
3//! Replace the long Tauri app-data prefix with `$APP` so
4//! `Trace=short` lines stay readable.
5
6use crate::IPC::DevLog::AppDataPrefix;
7
8pub fn Fn(Input:&str) -> String {
9 if let Some(Prefix) = AppDataPrefix::Fn() {
10 Input.replace(Prefix.as_str(), "$APP")
11 } else {
12 Input.to_string()
13 }
14}