mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-30 00:16:53 +00:00
fix: avoid too long diffs in cli
This commit is contained in:
@@ -64,6 +64,10 @@ export function isSuperset(
|
||||
|
||||
export function showDiff(local: string, remote: string) {
|
||||
let finalString = "";
|
||||
if (local?.length > 20000 || remote?.length > 20000) {
|
||||
log.info("Diff too large to display");
|
||||
return;
|
||||
}
|
||||
for (const part of Diff.diffLines(local, remote)) {
|
||||
if (part.removed) {
|
||||
// print red if removed without newline
|
||||
|
||||
Reference in New Issue
Block a user