Move `pijul_config::shell_cmd` to `pijul_remote`
Dependencies
- [2]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting). - [3]
VL7ZYKHBRunning hooks through shell on Windows and Unix - [4]
H4AU6QRPNew config for HTTP remotes - [5]
LZOGKBJXnew command `pijul client` for authenticating to a HTTP server - [6]
MJ5K6HRE🩹 Suppress async fn in trait warning - [7]
Z4PPQZUGRefactor `pijul-config` to support layered configuration - [8]
YW6NICQVMigrate codebase to refactored `pijul_config` crate - [9]
HGJETVANCreate `pijul_config::global_config_directory()` - [10]
EVDH2ECTMigrate from `pijul::identity` to `pijul_identity` - [11]
L4JXJHWXpijul/*: reorganize imports and remove extern crate - [12]
Y6EVFMTADon't output files if they aren't in the current channel - [13]
FVQYZQFLCreate dialoguer themes based on global config - [14]
VQPAUKBQchannel switch as an alias to reset
Change contents
- edit in pijul-remote/src/lib.rs at line 17
use pijul_config::shell_cmd; - edit in pijul-remote/src/lib.rs at line 113
fn shell_cmd(s: &str) -> Result<String, anyhow::Error> {let out = if cfg!(target_os = "windows") {std::process::Command::new("cmd").args(&["/C", s]).output().expect("failed to execute process")} else {std::process::Command::new(std::env::var("SHELL").unwrap_or("sh".to_string())).arg("-c").arg(s).output().expect("failed to execute process")};Ok(String::from_utf8(out.stdout)?.trim().to_string())} - edit in pijul-config/src/lib.rs at line 225[9.1775]→[3.214:217](∅→∅),[7.8427]→[3.214:217](∅→∅),[3.214]→[3.214:217](∅→∅),[3.217]→[4.4337:4809](∅→∅),[4.4809]→[5.4283:4341](∅→∅)
}pub fn shell_cmd(s: &str) -> Result<String, anyhow::Error> {let out = if cfg!(target_os = "windows") {std::process::Command::new("cmd").args(&["/C", s]).output().expect("failed to execute process")} else {std::process::Command::new(std::env::var("SHELL").unwrap_or("sh".to_string())).arg("-c").arg(s).output().expect("failed to execute process")};Ok(String::from_utf8(out.stdout)?.trim().to_string())