pub struct ExecutableConfig {
pub exe_path: Option<PathBuf>,
pub exe_link_path: Option<PathBuf>,
pub no_bin: bool,
pub no_shim: bool,
pub parent_exe_args: Vec<String>,
pub parent_exe_name: Option<String>,
pub primary: bool,
pub shim_before_args: Option<StringOrVec>,
pub shim_after_args: Option<StringOrVec>,
pub shim_env_vars: Option<FxHashMap<String, String>>,
}
Expand description
Configuration for generated shim and symlinked executable files.
Fields§
§exe_path: Option<PathBuf>
The file to execute, relative from the tool directory. Does not support virtual paths.
exe_link_path: Option<PathBuf>
The executable path to use for symlinking instead of exe_path
.
This should only be used when exe_path
is a non-standard executable.
no_bin: bool
Do not symlink a binary in ~/.proto/bin
.
no_shim: bool
Do not generate a shim in ~/.proto/shims
.
parent_exe_args: Vec<String>
List of arguments to append to the parent executable, but prepend before all other arguments.
parent_exe_name: Option<String>
The parent executable name required to execute the local executable path.
primary: bool
Whether this is the primary executable or not.
shim_before_args: Option<StringOrVec>
Custom args to prepend to user-provided args within the generated shim.
shim_after_args: Option<StringOrVec>
Custom args to append to user-provided args within the generated shim.
shim_env_vars: Option<FxHashMap<String, String>>
Custom environment variables to set when executing the shim.
Implementations§
Source§impl ExecutableConfig
impl ExecutableConfig
Sourcepub fn exe_link_path(self, value: PathBuf) -> Self
pub fn exe_link_path(self, value: PathBuf) -> Self
Sets the exe_link_path
field of this struct.
Sourcepub fn parent_exe_args(self, value: Vec<String>) -> Self
pub fn parent_exe_args(self, value: Vec<String>) -> Self
Sets the parent_exe_args
field of this struct.
Sourcepub fn parent_exe_name(self, value: impl Into<String>) -> Self
pub fn parent_exe_name(self, value: impl Into<String>) -> Self
Sets the parent_exe_name
field of this struct.
Sourcepub fn shim_before_args(self, value: StringOrVec) -> Self
pub fn shim_before_args(self, value: StringOrVec) -> Self
Sets the shim_before_args
field of this struct.
Sourcepub fn shim_after_args(self, value: StringOrVec) -> Self
pub fn shim_after_args(self, value: StringOrVec) -> Self
Sets the shim_after_args
field of this struct.
Sourcepub fn shim_env_vars(self, value: FxHashMap<String, String>) -> Self
pub fn shim_env_vars(self, value: FxHashMap<String, String>) -> Self
Sets the shim_env_vars
field of this struct.
Trait Implementations§
Source§impl Clone for ExecutableConfig
impl Clone for ExecutableConfig
Source§fn clone(&self) -> ExecutableConfig
fn clone(&self) -> ExecutableConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more