Skip to content

Commit

Permalink
Update Trunk and make cargo lea output less verbose.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbfm committed Jan 22, 2025
1 parent 8af4e69 commit 3d0efbb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .ci/cargo-ci/src/packages/lea.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ impl LeaCli {
pub fn default_handling(self) -> crate::Result {
match self.task {
TaskCli::Build => build::build()?,
TaskCli::Run(cli) => run::run(cli.pass_through)?,
TaskCli::Run(cli) => run::run(cli.passthrough)?,
TaskCli::Licenses(cli) => cli.default_handling(PackageSelection::Single(PACKAGE))?,
TaskCli::DistributionBuild => distribution_build::distribution_build()?,
};
Expand Down Expand Up @@ -74,16 +74,16 @@ pub mod distribution_build {
pub mod run {
use super::*;

#[tracing::instrument]
pub fn run(pass_through: Vec<String>) -> crate::Result {
#[tracing::instrument(skip_all)]
pub fn run(passthrough: Vec<String>) -> crate::Result {
install_requirements()?;

Command::new("trunk")
.args([
"watch",
"--release",
])
.args(pass_through)
.args(passthrough)
.current_dir(self_dir())
.run_requiring_success()?;
Ok(())
Expand Down
4 changes: 2 additions & 2 deletions .ci/cargo-ci/src/tasks/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ use std::process::Command;
pub struct RunCli {
/// Additional parameters to pass through to the started program
#[arg(raw=true)]
pub pass_through: Vec<String>,
pub passthrough: Vec<String>,
}

impl RunCli {
#[tracing::instrument(name="run", skip(self))]
pub fn default_handling(&self, package: crate::Package) -> crate::Result {
Command::new("cargo")
.args(["run", "--package", &package.ident(), "--"])
.args(&self.pass_through)
.args(&self.passthrough)
.status()?;

Ok(())
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ cross.version = "0.2.5"
diesel_cli.version = "2.2.4"
mdbook.version = "0.4.42"
mdbook-plantuml.version = "0.8.0"
trunk.version = "0.21.4"
trunk.version = "0.21.7"

[workspace.lints.clippy]
unnecessary_lazy_evaluations = "allow"

0 comments on commit 3d0efbb

Please sign in to comment.