MCPcopy Create free account
hub / github.com/CodSpeedHQ/codspeed / run

Function run

src/cli/update.rs:5–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3use crate::prelude::*;
4
5pub async fn run() -> Result<()> {
6 let mut updater = AxoUpdater::new_for("codspeed-runner");
7 if let Err(e) = updater.load_receipt() {
8 debug!("Failed to load update receipt: {e}");
9 bail!(
10 "Please re-install codspeed by following https://codspeed.io/docs/cli#installation to enable self updates"
11 );
12 };
13
14 let result = updater.run().await?;
15 match result {
16 Some(outcome) => {
17 info!("Updated codspeed to version {}", outcome.new_version_tag);
18 }
19 None => {
20 info!("codspeed is already up to date");
21 }
22 }
23 Ok(())
24}

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected