fish-shell/share/completions/tokei.fish
Fabian Homborg 69b464bc37 Run fish_indent on all our fish scripts
It's now good enough to do so.

We don't allow grid-alignment:

```fish
complete -c foo -s b -l barnanana -a '(something)'
complete -c foo -s z              -a '(something)'
```

becomes

```fish
complete -c foo -s b -l barnanana -a '(something)'
complete -c foo -s z -a '(something)'
```

It's just more trouble than it is worth.

The one part I'd change:

We align and/or'd parts of an if-condition with the in-block code:

```fish
if true
   and false
    dosomething
end
```

becomes

```fish
if true
    and false
    dosomething
end
```

but it's not used terribly much and if we ever fix it we can just
reindent.
2020-01-13 20:34:22 +01:00

26 lines
1.6 KiB
Fish
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Written against `tokei --help`, version 10.0.1 compiled with support for CBOR, JSON, and YAML
function __fish_tokei_supported_serializations
# Expecting a line like:
# tokei 10.0.1 compiled with serialization support: cbor, json, yaml
command tokei --help | grep 'with serialization support' | cut -d : -f 2 | string trim | string split ', '
end
complete -c tokei -s f -l files -d 'Print out statistics for individual files'
complete -c tokei -f -s h -l help -d 'Print help information'
complete -c tokei -l hidden -d 'Count hidden files, too'
complete -c tokei -f -s l -l languages -d 'Print out supported languages'
complete -c tokei -l no-ignore -d 'Dont respect ignore files'
complete -c tokei -l no-ignore-parent -d 'Dont respect ignore files in parent directories'
complete -c tokei -l no-ignore-vcs -d 'Dont respect version-control ignore files'
complete -c tokei -f -s V -l version -d 'Print version information'
complete -c tokei -s v -l verbose -d 'Increase log output level'
# Options
complete -c tokei -x -s c -l columns -d 'Set column width for terminal output'
complete -c tokei -x -s e -l exclude -d 'Ignore all files and directories containing this word'
complete -c tokei -r -s i -l input -d 'Gives statistics from a previous Tokei run'
complete -c tokei -x -s o -l output -a '(__fish_tokei_supported_serializations)' -d 'Choose output format'
complete -c tokei -x -s s -l sort -ka 'files lines code comments blanks' -d 'Sort languages based on column'
complete -c tokei -x -s t -l type -a '(command tokei --languages)' -d 'Filters output by language type, comma-separated'