mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-07-07 14:38:58 +08:00
Rather than storing a list of errors we now store a list of "diagnostics." Each diagnostic has a richer set of structured information, including a message, a key, the location where it occurred. This lets us show more detailed messages, more human friendly messages, and also let's us filter by key or location. We don't take advantage of all of this capability in this initial commit, but we do use every field for something.
12 lines
339 B
Zig
12 lines
339 B
Zig
const diags = @import("cli/diagnostics.zig");
|
|
|
|
pub const args = @import("cli/args.zig");
|
|
pub const Action = @import("cli/action.zig").Action;
|
|
pub const DiagnosticList = diags.DiagnosticList;
|
|
pub const Diagnostic = diags.Diagnostic;
|
|
pub const Location = diags.Diagnostic.Location;
|
|
|
|
test {
|
|
@import("std").testing.refAllDecls(@This());
|
|
}
|