Skip to content

Commit 9ccf61f

Browse files
committed
some cleanup
1 parent 05f2d72 commit 9ccf61f

7 files changed

Lines changed: 125 additions & 223 deletions

File tree

.vscode/launch.json

Lines changed: 0 additions & 50 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "pkgx"
33
description = "Run anything"
44
authors = ["Max Howell <mxcl@me.com>", "Jacob Heider <jacob@pkgx.dev>"]
55
license = "Apache-2.0"
6-
version = "2.7.1"
6+
version = "2.8.0"
77
edition = "2021"
88
repository = "https://github.com/pkgxdev/pkgx"
99

crates/cli/src/args.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,15 +115,11 @@ pub fn parse() -> Args {
115115
}
116116
}
117117
} else {
118-
// Only start collecting args if not in query mode, or if we're already collecting
119-
if mode == Mode::Query && !collecting_args {
120-
// In query mode, continue processing flags until we hit a non-flag argument
121-
args.push(arg);
122-
} else {
118+
if mode != Mode::Query {
123119
find_program = !arg.contains('/');
124120
collecting_args = true;
125-
args.push(arg);
126121
}
122+
args.push(arg);
127123
}
128124
}
129125

crates/cli/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
4343
}
4444
args::Mode::Query => {
4545
let (conn, _, config, _) = setup(&flags).await?;
46-
query::query(&args, flags.silent, &conn, flags.json, &config).await
46+
query::query(&args, &flags, &conn, &config).await
4747
}
4848
args::Mode::X => {
4949
let (mut conn, did_sync, config, mut spinner) = setup(&flags).await?;

0 commit comments

Comments
 (0)