wincd 2.0.0

WSL 下一步到位的 Windows 路径导航工具 — 粘贴 Windows 路径,直接 cd
Documentation
1
2
3
4
5
6
7
8
9
//! `wincd init <SHELL>` — 输出 shell 集成代码到 stdout

use crate::shell::{self, Shell};
use anyhow::Result;

pub fn run(shell: Shell) -> Result<()> {
    print!("{}", shell::init_script(shell));
    Ok(())
}