mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-08-03 14:49:04 +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
|
None
|
||||||
} else {
|
} else {
|
||||||
Some(format!(
|
Some(format!("'{}'", {
|
||||||
"'{}'",
|
let mut cmd_parts = vec![cp
|
||||||
cp.plugin.executable().unwrap().to_string_lossy()
|
.plugin
|
||||||
))
|
.executable()
|
||||||
|
.unwrap()
|
||||||
|
.to_string_lossy()
|
||||||
|
.to_string()];
|
||||||
|
cmd_parts.extend(cp.plugin.luanch_opts.clone().unwrap_or_default());
|
||||||
|
cmd_parts.join(" ")
|
||||||
|
}))
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
None
|
None
|
||||||
|
|
|
@ -27,6 +27,8 @@ pub struct Plugin {
|
||||||
pub exec_url: Option<String>,
|
pub exec_url: Option<String>,
|
||||||
/// either one of exec_url or exec_path must be provided
|
/// either one of exec_url or exec_path must be provided
|
||||||
pub exec_path: Option<PathBuf>,
|
pub exec_path: Option<PathBuf>,
|
||||||
|
/// options and arguments that should be passed to the plugin executable
|
||||||
|
pub luanch_opts: Option<Vec<String>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Plugin {
|
impl Plugin {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue