Skip to main content

handle_update

Function handle_update 

Source
pub async fn handle_update(check: bool) -> Result<()>
Expand description

Handle oxicode update [--check] — refresh the binary and converge it into the ecosystem-standard managed layout (~/.oxi/oxicode/{bin,versions}).

The fetch channel is cargo install oxicode-cli --force — crates.io and binstall already sign and pre-build the binary. Once the new binary is in place, [managed_install::adopt_binary] moves it under ~/.oxi/oxicode/versions/<v>/, flips the launcher, repoints the cargo bin copy at the launcher, and prunes older versions (keep 2).