mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-04-19 19:14:53 +00:00
feat: launch options for plugins
This commit is contained in:
parent
879637115c
commit
18e5670d90
2 changed files with 12 additions and 4 deletions
|
@ -256,10 +256,16 @@ impl App {
|
|||
);
|
||||
None
|
||||
} else {
|
||||
Some(format!(
|
||||
"'{}'",
|
||||
cp.plugin.executable().unwrap().to_string_lossy()
|
||||
))
|
||||
Some(format!("'{}'", {
|
||||
let mut cmd_parts = vec![cp
|
||||
.plugin
|
||||
.executable()
|
||||
.unwrap()
|
||||
.to_string_lossy()
|
||||
.to_string()];
|
||||
cmd_parts.extend(cp.plugin.luanch_opts.clone().unwrap_or_default());
|
||||
cmd_parts.join(" ")
|
||||
}))
|
||||
}
|
||||
} else {
|
||||
None
|
||||
|
|
|
@ -27,6 +27,8 @@ pub struct Plugin {
|
|||
pub exec_url: Option<String>,
|
||||
/// either one of exec_url or exec_path must be provided
|
||||
pub exec_path: Option<PathBuf>,
|
||||
/// options and arguments that should be passed to the plugin executable
|
||||
pub luanch_opts: Option<Vec<String>>,
|
||||
}
|
||||
|
||||
impl Plugin {
|
||||
|
|
Loading…
Add table
Reference in a new issue