Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ are treated as bugs.

Our key objectives include:
- Matching GNU's output (stdout and error code) exactly
- Better error messages
- Better error messages: at a terminal, a parse error is shown as a
compiler-style report with a caret under the argument at fault, where GNU
prints a single line (see [error diagnostics](docs/src/extensions-errors.md));
scripts and pipes still get the plain GNU message
- Providing comprehensive internationalization support (UTF-8)
- Improved performances
- [Extensions](docs/src/extensions.md) when relevant (example: --progress)
Expand Down
42 changes: 42 additions & 0 deletions docs/src/extensions-errors.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/* Styling for the error reports shown on this page. The colors are the ones
the utilities actually emit, so the examples read here the way they do in a
terminal; they match the palette used on uutils.org. */

pre.diag {
margin: 1rem 0;
padding: 0.9rem 1.1rem;
border-radius: 0.6em;
background: #1e1e2e;
color: #cdd6f4;
font-size: 0.82rem;
line-height: 1.5;
overflow-x: auto;
white-space: pre;
}

/* The prompt of the command being run. */
pre.diag .a-p {
color: #89b4fa;
}

/* ANSI colors as emitted by the utilities: frame, source line, gutter,
the span at fault, and the Help: label. */
pre.diag .a-d {
color: #9399b2;
}

pre.diag .a-s {
color: #cdd6f4;
}

pre.diag .a-f {
color: #7f849c;
}

pre.diag .a-e {
color: #f38ba8;
}

pre.diag .a-h {
color: #a6e3a1;
}
Loading
Loading