Skip to content

Commit 762cf12

Browse files
committed
Style vix check output consistently
2 parents 1180ea5 + 7b92e92 commit 762cf12

4 files changed

Lines changed: 405 additions & 84 deletions

File tree

src/commands/CheckCommand.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,21 +73,21 @@ namespace vix::commands::CheckCommand
7373

7474
static void print_project_resolution(const Options &opt, const fs::path &projectDir)
7575
{
76-
if (opt.quiet)
76+
if (opt.quiet || !opt.verbose)
7777
return;
7878

79-
ui::section(std::cout, "Check");
79+
ui::section(std::cout, "Check resolution");
8080
ui::kv(std::cout, "mode", "project");
8181
ui::kv(std::cout, "project dir", projectDir.string());
8282
ui::one_line_spacer(std::cout);
8383
}
8484

8585
static void print_script_resolution(const Options &opt, const fs::path &scriptPath)
8686
{
87-
if (opt.quiet)
87+
if (opt.quiet || !opt.verbose)
8888
return;
8989

90-
ui::section(std::cout, "Check");
90+
ui::section(std::cout, "Check resolution");
9191
ui::kv(std::cout, "mode", "script");
9292
ui::kv(std::cout, "script", scriptPath.string());
9393
ui::one_line_spacer(std::cout);

src/commands/check/CheckFlow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ namespace vix::commands::CheckCommand::detail
257257
o.enableUbsanOnly = false;
258258
}
259259

260-
if ((o.enableSanitizers || o.enableUbsanOnly || o.enableThreadSanitizer) && !o.singleCpp)
260+
if ((o.enableSanitizers || o.enableUbsanOnly || o.enableThreadSanitizer) && o.singleCpp)
261261
o.runAfterBuild = true;
262262

263263
if (o.quiet && o.verbose)

0 commit comments

Comments
 (0)