The executable that internal subcommands are re-invoked through.
()
| 131 | |
| 132 | /// The executable that internal subcommands are re-invoked through. |
| 133 | pub(crate) fn self_exe() -> Result<PathBuf> { |
| 134 | #[cfg(test)] |
| 135 | if let Some(path) = std::env::var_os(SELF_EXE_ENV_VAR) { |
| 136 | return Ok(PathBuf::from(path)); |
| 137 | } |
| 138 | |
| 139 | std::env::current_exe().context("failed to resolve current executable for internal subcommand") |
| 140 | } |
| 141 | |
| 142 | impl InternalCommands { |
| 143 | /// Build a [`CommandBuilder`] that re-execs the current binary into this |
no outgoing calls
no test coverage detected