Skip to content

Commit

Permalink
Merge pull request ProvableHQ#27944 from AleoHQ/fix/leo-build-depreca…
Browse files Browse the repository at this point in the history
…te-warning

[Fix] Remove deprecation warning for `leo build`.
  • Loading branch information
evan-schott authored May 13, 2024
2 parents e8baedf + a998f70 commit e658742
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions leo/cli/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

use crate::cli::{commands::*, context::*, helpers::*};
use clap::Parser;
use colored::Colorize;
use leo_errors::Result;
use std::{path::PathBuf, process::exit};

Expand Down Expand Up @@ -124,22 +123,7 @@ pub fn run_with_args(cli: CLI) -> Result<()> {
Commands::Add { command } => command.try_execute(context),
Commands::Account { command } => command.try_execute(context),
Commands::New { command } => command.try_execute(context),
Commands::Build { command } => {
// Enter tracing span
let span = command.log_span();
let span = span.enter();

// Leo build is deprecated in version 1.9.0
tracing::info!(
"⚠️ Attention - This command is deprecated. Use the {} command.\n",
"'run'".to_string().bold()
);

// Drop tracing span
drop(span);

command.try_execute(context)
}
Commands::Build { command } => command.try_execute(context),
Commands::Clean { command } => command.try_execute(context),
Commands::Deploy { command } => command.try_execute(context),
Commands::Example { command } => command.try_execute(context),
Expand Down

0 comments on commit e658742

Please sign in to comment.