/ src / debug.rs
debug.rs
 1  use anyhow::Result;
 2  
 3  use crate::{
 4      DebugCommands::{self, ConfigPath, SystemPath},
 5      util::{config_path, system_path},
 6  };
 7  
 8  pub fn debug(debug_command: DebugCommands) -> Result<()> {
 9      match debug_command {
10          ConfigPath { path } => {
11              println!("{}", config_path(&path)?.display());
12          }
13          SystemPath { path } => {
14              println!("{}", system_path(&path)?.display());
15          }
16      }
17  
18      Ok(())
19  }