mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
Add short flag for --filter (#16058)
This commit is contained in:
@@ -235,7 +235,7 @@ pub const Arguments = struct {
|
||||
};
|
||||
|
||||
const auto_or_run_params = [_]ParamType{
|
||||
clap.parseParam("--filter <STR>... Run a script in all workspace packages matching the pattern") catch unreachable,
|
||||
clap.parseParam("-F, --filter <STR>... Run a script in all workspace packages matching the pattern") catch unreachable,
|
||||
clap.parseParam("-b, --bun Force a script or package to use Bun's runtime instead of Node.js (via symlinking node)") catch unreachable,
|
||||
clap.parseParam("--shell <STR> Control the shell used for package.json scripts. Supports either 'bun' or 'system'") catch unreachable,
|
||||
};
|
||||
|
||||
@@ -9573,7 +9573,7 @@ pub const PackageManager = struct {
|
||||
|
||||
const outdated_params: []const ParamType = &(shared_params ++ [_]ParamType{
|
||||
// clap.parseParam("--json Output outdated information in JSON format") catch unreachable,
|
||||
clap.parseParam("--filter <STR>... Display outdated dependencies for each matching workspace") catch unreachable,
|
||||
clap.parseParam("-F, --filter <STR>... Display outdated dependencies for each matching workspace") catch unreachable,
|
||||
clap.parseParam("<POS> ... Package patterns to filter by") catch unreachable,
|
||||
});
|
||||
|
||||
|
||||
@@ -110,7 +110,7 @@ function runInCwdSuccess({
|
||||
cmd.push("--filter", p);
|
||||
}
|
||||
} else {
|
||||
cmd.push("--filter", pattern);
|
||||
cmd.push("-F", pattern);
|
||||
}
|
||||
|
||||
for (const c of command) {
|
||||
|
||||
Reference in New Issue
Block a user