mirror of
https://github.com/Llewellynvdm/starship.git
synced 2025-02-09 15:38:27 +00:00
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.
25 lines
367 B
Rust
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;
|