fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
30459b053
master
1# Written against `tokei --help`, version 10.0.1 compiled with support for CBOR, JSON, and YAML 2 3function __fish_tokei_supported_serializations 4# Expecting a line like: 5# tokei 10.0.1 compiled with serialization support: cbor, json, yaml 6command tokei --help| grep 'with serialization support' | string split --fields2 :| string trim| string split', ' 7end 8 9complete -c tokei -s f -l files -d'Print out statistics for individual files' 10complete -c tokei -f -s h -l help -d'Print help information' 11complete -c tokei -l hidden -d'Count hidden files, too' 12complete -c tokei -f -s l -l languages -d'Print out supported languages' 13complete -c tokei -l no-ignore -d'Don’t respect ignore files' 14complete -c tokei -l no-ignore-parent -d'Don’t respect ignore files in parent directories' 15complete -c tokei -l no-ignore-vcs -d'Don’t respect version-control ignore files' 16complete -c tokei -f -s V -l version -d'Print version information' 17complete -c tokei -s v -l verbose -d'Increase log output level' 18 19# Options 20complete -c tokei -x -s c -l columns -d'Set column width for terminal output' 21complete -c tokei -x -s e -l exclude -d'Ignore all files and directories containing this word' 22complete -c tokei -r -s i -l input -d'Gives statistics from a previous Tokei run' 23complete -c tokei -x -s o -l output -a'(__fish_tokei_supported_serializations)' -d'Choose output format' 24complete -c tokei -x -s s -l sort -ka'files lines code comments blanks' -d'Sort languages based on column' 25complete -c tokei -x -s t -l type -a'(command tokei --languages)' -d'Filters output by language type, comma-separated'