mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 20:33:08 +00:00
Simplify argument completions for ttx and meson
This commit is contained in:
parent
ff47b2dad5
commit
18a163dc24
2 changed files with 12 additions and 12 deletions
|
@ -39,14 +39,14 @@ end
|
|||
|
||||
complete -c meson -s "D" -d "Set value of an option (-D foo=bar)"
|
||||
|
||||
complete -c meson -l buildtype -xa '(string split , plain,debug,debugoptimized,release,minsize)' -d "Set build type [debug]"
|
||||
complete -c meson -l layout -xa '(string split , mirror,flat)' -d "Build directory layout [mirror]"
|
||||
complete -c meson -l backend -xa '(string split , ninja,vs,vs2010,vs2015,vs2017,xcode)' -d "Compilation backend [ninja]"
|
||||
complete -c meson -l default-library -xa '(string split , shared,static,both)' -d "Default library type [shared]"
|
||||
complete -c meson -l warning-level -xa '(string split , 1,2,3)' -d "Warning level [1]"
|
||||
complete -c meson -l unity -xa '(string split , on,off,subprojects)' -d "Unity build [off]"
|
||||
complete -c meson -l buildtype -xa 'plain debug debugoptimized release minsize' -d "Set build type [debug]"
|
||||
complete -c meson -l layout -xa 'mirror flat' -d "Build directory layout [mirror]"
|
||||
complete -c meson -l backend -xa 'ninja vs vs2010 vs2015 vs2017 xcode' -d "Compilation backend [ninja]"
|
||||
complete -c meson -l default-library -xa 'shared static both' -d "Default library type [shared]"
|
||||
complete -c meson -l warning-level -xa '1 2 3' -d "Warning level [1]"
|
||||
complete -c meson -l unity -xa 'on off subprojects' -d "Unity build [off]"
|
||||
complete -c meson -l cross-file -r -d "File describing cross-compilation environment"
|
||||
complete -c meson -l wrap-mode -xa '(printf "%s\n" WrapMode.{default,nofallback,nodownload,forcefallback})' -d "Special wrap mode to use"
|
||||
complete -c meson -l wrap-mode -xa 'WrapMode.{default,nofallback,nodownload,forcefallback}' -d "Special wrap mode to use"
|
||||
|
||||
# final parameter
|
||||
complete -c meson -n '__fish_is_first_token' -xa '(__fish_complete_suffix {})'
|
||||
|
|
|
@ -23,20 +23,20 @@ complete -c ttx -f -s 'a' -d'Allow virtual glyph IDs'
|
|||
|
||||
# Dump options
|
||||
complete -c ttx -f -s 'l' -d'List table info'
|
||||
complete -c ttx -x -s 't' -d'Dump named table' -a "(printf '%s\n' $table_names)"
|
||||
complete -c ttx -x -s 'x' -d'Exclude named table' -a "(printf '%s\n' $table_names)"
|
||||
complete -c ttx -x -s 't' -d'Dump named table' -a "$table_names"
|
||||
complete -c ttx -x -s 'x' -d'Exclude named table' -a "$table_names"
|
||||
complete -c ttx -f -s 's' -d'Split tables'
|
||||
complete -c ttx -f -s 'g' -d'Split glyf tables'
|
||||
complete -c ttx -f -s 'i' -d'Do NOT disassemble TT instructions'
|
||||
complete -c ttx -x -s 'z' -d'Use FORMAT for EBDT or CBDT' -a "(printf '%s\n' $formats)"
|
||||
complete -c ttx -x -s 'z' -d'Use FORMAT for EBDT or CBDT' -a "$formats"
|
||||
complete -c ttx -f -s 'e' -d'Don\'t ignore decompilation errors'
|
||||
complete -c ttx -x -s 'y' -d'Select font index for TrueType Collection'
|
||||
complete -c ttx -x -l 'unicodedata' -d'Custom database for character names [UnicodeData.txt]' -a '(__fish_complete_suffix .txt)'
|
||||
complete -c ttx -x -l 'newline' -d'Set EOL format' -a "(printf '%s\n' $line_endings)"
|
||||
complete -c ttx -x -l 'newline' -d'Set EOL format' -a "$line_endings"
|
||||
|
||||
# Compile options
|
||||
complete -c ttx -x -s 'm' -d'Merge named TTF/OTF with SINGLE .ttx input' -a '(__fish_complete_suffix .{otf,ttf})'
|
||||
complete -c ttx -f -s 'b' -d'Don\'t recalculate glyph bounding boxes'
|
||||
complete -c ttx -f -l 'recalc-timestamp' -d'Set font modified timestamp to current time'
|
||||
complete -c ttx -x -l 'flavor' -d'Set WOFF flavor' -a "(printf '%s\n' $woff_fmts)"
|
||||
complete -c ttx -x -l 'flavor' -d'Set WOFF flavor' -a "$woff_fmts"
|
||||
complete -c ttx -f -l 'with-zopfli' -d'Compress with zopfli instead of zlib'
|
||||
|
|
Loading…
Reference in a new issue