brix 0.4.2

Brix is a CLI tool written in Rust for scaffolding and code generation.
1
2
3
4
5
6
7
8
9
10
11
// Copyright (c) 2021 Ethan Lerner, Caleb Cushing, and the Brix contributors
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT

/// Utility function for displaying Windows paths more or less the same as Unix paths.
pub fn display_path(path: &str) -> String {
    let path = path.replace("//", "/");
    let path = path.replace("\\\\", "/");
    path.replace("\\", "/")
}