Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

fix(spans-visual): change spans command output from advice to custom type

Grant Lemons47b12be1ea0c
diff --git a/harper-cli/src/main.rs b/harper-cli/src/main.rs
index 694667fce..aa929ce92 100644
--- a/harper-cli/src/main.rs
+++ b/harper-cli/src/main.rs
@@ -99,7 +99,8 @@ fn main() -> anyhow::Result<()> {
.map(|s| s.to_string_lossy().into())
.unwrap_or("<file>".to_string());
- let mut report_builder = Report::build(ReportKind::Advice, &filename, 0);
+ let mut report_builder =
+ Report::build(ReportKind::Custom("Spans", primary_color), &filename, 0);
let mut color = primary_color;
for token in doc.tokens() {
report_builder = report_builder.with_label(