fish_indent: Add a "--check" option to only test indentation

Fixes #7251.
This commit is contained in:
Fabian Homborg
2020-08-08 20:22:18 +02:00
parent b4f5ba6537
commit 2cdd6df257
3 changed files with 22 additions and 1 deletions

View File

@@ -22,6 +22,8 @@ The following options are available:
- ``-i`` or ``--no-indent`` do not indent commands; only reformat to one job per line.
- ``-c`` or ``--check`` do not indent, only return 0 if the code is already indented as fish_indent would, 1 otherwise.
- ``-v`` or ``--version`` displays the current fish version and then exits.
- ``--ansi`` colorizes the output using ANSI escape sequences, appropriate for the current $TERM, using the colors defined in the environment (such as ``$fish_color_command``).