1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-06-20 17:12:28 +00:00
starship/src/lib.rs
David Knaack 1eaf996a36
fix(windows): avoid inadvertly running exes from cwd (#2885)
On Windows when running commands with their name instead of the path with Command::new, executable with that name from the current working directory will be executed.

This PR replaces all instances of Command::new with a new create_command function which will first resolve any executable paths and avoid this issue.
2021-07-16 15:20:59 -04:00

25 lines
367 B
Rust

#![warn(clippy::disallowed_method)]
#[macro_use]
extern crate shadow_rs;
shadow!(shadow);
// Lib is present to allow for benchmarking
pub mod bug_report;
pub mod config;
pub mod configs;
pub mod configure;
pub mod context;
pub mod formatter;
pub mod init;
pub mod logger;
pub mod module;
mod modules;
pub mod print;
mod segment;
mod utils;
#[cfg(test)]
mod test;