Skip to content

Commit 575ebf5

Browse files
author
William Yang
committed
fix: JSON 输出模式下不打印 header
1 parent 6114ec2 commit 575ebf5

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

bootcs/__main__.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,11 @@ def run_check(args):
112112
if not included:
113113
termcolor.cprint("Warning: No files found to check", "yellow", file=sys.stderr)
114114

115-
# Print header
116-
print()
117-
termcolor.cprint(f"🔍 Running checks for {slug}...", "cyan", attrs=["bold"])
118-
print()
115+
# Print header (skip in JSON mode for clean output)
116+
if args.output != "json":
117+
print()
118+
termcolor.cprint(f"🔍 Running checks for {slug}...", "cyan", attrs=["bold"])
119+
print()
119120

120121
# Run checks
121122
targets = args.target if hasattr(args, 'target') and args.target else None

0 commit comments

Comments
 (0)