Skip to content

Commit

Permalink
Moar emojis
Browse files Browse the repository at this point in the history
  • Loading branch information
mcncl committed Sep 17, 2024
1 parent 32b0bb7 commit cfd4d4b
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 11 deletions.
1 change: 0 additions & 1 deletion .baprc

This file was deleted.

49 changes: 49 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ dialoguer = "0.11.0"
dirs = "5.0.1"
flate2 = "1.0.33"
tar = "0.4.41"
indicatif = "0.17.8"
futures-util = "0.3.30"
Binary file modified images/demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 3 additions & 10 deletions src/commands/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ pub async fn run(version: &str) -> Result<()> {
version_without_v, filename
);

println!(
"Installing agent {} for {}-{}...",
version_without_v, os, arch
);
println!("📦 Installing agent {} ({})...", version_without_v, arch);

let client = Client::new();
let response = client.get(&url).send().await?;
Expand Down Expand Up @@ -51,19 +48,15 @@ pub async fn run(version: &str) -> Result<()> {
// Update the list of available versions
update_versions_list(version_without_v)?;

println!(
"Successfully installed Buildkite agent version {} to {}",
version_without_v,
dest_path.display()
);
println!("🚀 {} installed... ", version_without_v,);
Ok(())
}

fn determine_arch() -> Result<String> {
Ok(match std::env::consts::ARCH {
"x86_64" => "amd64",
"aarch64" => "arm64",
arch => bail!("Unsupported architecture: {}", arch),
arch => bail!("🚫 Unsupported architecture: {}", arch),
}
.to_string())
}
Expand Down

0 comments on commit cfd4d4b

Please sign in to comment.