1FISH_INDENT(1)                    fish-shell                    FISH_INDENT(1)
2
3
4

NAME

6       fish_indent - indenter and prettifier
7

SYNOPSIS

9          fish_indent [OPTIONS] [FILE...]
10

DESCRIPTION

12       fish_indent  is  used to indent a piece of fish code. fish_indent reads
13       commands from standard input or the given filenames and outputs them to
14       standard output or a specified file (if -w is given).
15
16       The following options are available:
17
18       · -w or --write indents a specified file and immediately writes to that
19         file.
20
21       · -i or --no-indent do not indent commands; only reformat  to  one  job
22         per line.
23
24       · -c  or  --check  do  not indent, only return 0 if the code is already
25         indented as fish_indent would, the number of failed files  otherwise.
26         Also print the failed filenames if not reading from stdin.
27
28       · -v or --version displays the current fish version and then exits.
29
30       · --ansi  colorizes the output using ANSI escape sequences, appropriate
31         for the current $TERM, using the colors defined  in  the  environment
32         (such as $fish_color_command).
33
34       · --html outputs HTML, which supports syntax highlighting if the appro‐
35         priate CSS is defined. The CSS class names are the same as the  vari‐
36         able names, such as fish_color_command.
37
38       · -d or --debug=DEBUG_CATEGORIES enable debug output and specify a pat‐
39         tern for matching debug categories.  See  Debugging  in  fish(1)  for
40         details.
41
42       · -o  or  --debug-output=DEBUG_FILE  specify a file path to receive the
43         debug output, including categories and  fish_trace.  The  default  is
44         stderr.
45
46       · --dump-parse-tree  dumps  information  about the parsed statements to
47         stderr. This is likely to be of interest only to  people  working  on
48         the fish source code.
49
51       2020, fish-shell developers
52
53
54
55
563.2                              Mar 18, 2021                   FISH_INDENT(1)
Impressum