Skip to content

Commit

Permalink
Change shell
Browse files Browse the repository at this point in the history
Signed-off-by: Danil <[email protected]>
  • Loading branch information
Deniallugo committed Aug 20, 2024
1 parent c6e7ddd commit 9e13cbc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion zk_toolbox/crates/zk_supervisor/src/commands/fmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use std::path::PathBuf;

use clap::Parser;
use common::{cmd::Cmd, logger, spinner::Spinner};
use config::EcosystemConfig;
use xshell::{cmd, Shell};

use crate::{
Expand Down Expand Up @@ -81,6 +82,7 @@ pub struct FmtArgs {
}

pub async fn run(shell: Shell, args: FmtArgs) -> anyhow::Result<()> {
let ecosystem = EcosystemConfig::from_file(&shell)?;
match args.formatter {
None => {
let mut tasks = vec![];
Expand All @@ -91,7 +93,11 @@ pub async fn run(shell: Shell, args: FmtArgs) -> anyhow::Result<()> {
for ext in extensions {
tasks.push(tokio::spawn(prettier(shell.clone(), ext, args.check)));
}
tasks.push(tokio::spawn(rustfmt(shell.clone(), args.check, ".".into())));
tasks.push(tokio::spawn(rustfmt(
shell.clone(),
args.check,
ecosystem.link_to_code,
)));
tasks.push(tokio::spawn(prettier_contracts(shell.clone(), args.check)));

futures::future::join_all(tasks)
Expand Down

0 comments on commit 9e13cbc

Please sign in to comment.