[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot]
2025-09-07 08:10:01 +00:00
committed by GitHub
parent 690ca26414
commit 1f024302c6
3 changed files with 5 additions and 4 deletions

View File

@@ -165,6 +165,7 @@ bun run --filter 'ba*' <script>
will execute `<script>` in both `bar` and `baz`, but not in `foo`.
When using `--filter`, you can control the output display with:
- `--elide-lines <number>`: Limit the number of output lines shown per package (default: 10, use 0 for no limit)
- `--stream`: Stream output immediately without buffering or formatting (similar to pnpm's `--stream`)

View File

@@ -401,7 +401,7 @@ pub fn parse(allocator: std.mem.Allocator, ctx: Command.Context, comptime cmd: C
};
}
}
ctx.bundler_options.stream_logs = args.flag("--stream");
}
@@ -1144,7 +1144,7 @@ pub fn parse(allocator: std.mem.Allocator, ctx: Command.Context, comptime cmd: C
};
}
}
ctx.bundler_options.stream_logs = args.flag("--stream");
if (opts.define) |define| {

View File

@@ -560,12 +560,12 @@ pub fn runScriptsWithFilter(ctx: Command.Context) !noreturn {
Output.prettyErrorln("<r><red>error<r>: --stream and --elide-lines cannot be used together", .{});
Global.exit(1);
}
// When --stream is set, disable pretty output
if (state.stream_logs) {
state.pretty_output = false;
}
// Check if elide-lines is used in a non-terminal environment
if (ctx.bundler_options.elide_lines != null and !state.pretty_output) {
Output.prettyErrorln("<r><red>error<r>: --elide-lines is only supported in terminal environments", .{});