warp-directory 0.3.1

A simple command line tool to quickly change directories
Documentation
1
2
3
4
5
6
7
8
use std::path::Path;

/// Returns the current working directory as a boxed path.
pub fn get_current_directory() -> Box<Path> {
    std::env::current_dir()
        .expect("Unable to get current directory")
        .into_boxed_path()
}