summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-12-11 11:53:51 +0100
committerMatthias Beyer <mail@beyermatthias.de>2020-12-11 11:53:51 +0100
commitc346b8c24e75f8940b161ff22cad49cc7d14083c (patch)
tree794c927e353f73532483817c3d7217a5223ba7f3 /src/main.rs
parent746e0cf6a73f81b1f746948422b746a07b4621c0 (diff)
Refactor to find linter from repository root
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index da02de0..ca642b8 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -102,7 +102,7 @@ async fn main() -> Result<()> {
let repo = load_repo()?;
- crate::commands::build(matches, progressbars, conn, &config, repo, &repo_path, max_packages).await?
+ crate::commands::build(&repo_path, matches, progressbars, conn, &config, repo, &repo_path, max_packages).await?
},
Some(("what-depends", matches)) => {
let repo = load_repo()?;
@@ -144,7 +144,7 @@ async fn main() -> Result<()> {
Some(("lint", matches)) => {
let repo = load_repo()?;
- crate::commands::lint(matches, progressbars, &config, repo).await?
+ crate::commands::lint(&repo_path, matches, progressbars, &config, repo).await?
}
Some((other, _)) => return Err(anyhow!("Unknown subcommand: {}", other)),