From cfa6231ac91b5da00ec46da012bbef4cee1a6224 Mon Sep 17 00:00:00 2001 From: Mehul Kar Date: Mon, 8 Jan 2024 21:04:45 -0600 Subject: [PATCH] expose as_command API on CommandBuilder publicly --- pty/src/cmdbuilder.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pty/src/cmdbuilder.rs b/pty/src/cmdbuilder.rs index 58eba26a8..a4596b1d6 100644 --- a/pty/src/cmdbuilder.rs +++ b/pty/src/cmdbuilder.rs @@ -474,7 +474,7 @@ impl CommandBuilder { } /// Convert the CommandBuilder to a `std::process::Command` instance. - pub(crate) fn as_command(&self) -> anyhow::Result { + pub fn as_command(&self) -> anyhow::Result { use std::os::unix::process::CommandExt; let home = self.get_home_dir()?;