diff options
Diffstat (limited to 'zellij-utils/src/input/command.rs')
-rw-r--r-- | zellij-utils/src/input/command.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/zellij-utils/src/input/command.rs b/zellij-utils/src/input/command.rs index 3d2a87ab3..3212d26ec 100644 --- a/zellij-utils/src/input/command.rs +++ b/zellij-utils/src/input/command.rs @@ -68,3 +68,16 @@ impl From<RunCommandAction> for RunCommand { } } } + +impl RunCommand { + pub fn new(command: PathBuf) -> Self { + RunCommand { + command, + ..Default::default() + } + } + pub fn with_cwd(mut self, cwd: PathBuf) -> Self { + self.cwd = Some(cwd); + self + } +} |