pub struct RunConfig {
pub name: String,
pub display_name: Option<String>,
pub export_dir: Option<String>,
pub command: Option<String>,
pub args: Vec<String>,
pub cwd: Option<String>,
pub env: Vec<(String, String)>,
}Expand description
A [run.<name>] section: where to drop the built artifact and what to
launch afterwards, for a full yog run <name> dev-instance workflow.
Fields§
§name: String§display_name: Option<String>Optional human-readable label (name = "..." inside [run.X]), for
editors to show/edit instead of the raw dotted section-key id. Falls
back to name (the id) when absent.
export_dir: Option<String>Directory the built .yog gets copied into (e.g. an instance’s yog-mods/).
Relative paths resolve against the mod project root.
command: Option<String>Executable to launch after export (e.g. java, a wrapper script, ./gradlew).
args: Vec<String>Arguments passed to command, in order.
cwd: Option<String>Working directory for command. Relative paths resolve against the project root.
env: Vec<(String, String)>Extra environment variables as KEY=VALUE pairs.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RunConfig
impl RefUnwindSafe for RunConfig
impl Send for RunConfig
impl Sync for RunConfig
impl Unpin for RunConfig
impl UnsafeUnpin for RunConfig
impl UnwindSafe for RunConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more