pub fn run_install() -> Result<(), i32>Expand description
Execute bao install / bao add.
This is the bao_runtime equivalent of
bun_runtime::cli::install_command::install_with_cli().
CommandLineArguments::parse reads from bun_core::argv() (falls back to
std::env::args_os()), so the caller’s argv must contain the install
subcommand and any package arguments.
Callers should invoke force_link_bun_install() before this to ensure the
__bun_dispatch__ symbols are linked in.