mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 21:03:12 +00:00
feat(completion): support dot command
This commit is contained in:
parent
f35511dfb3
commit
eb1c4b4934
2 changed files with 79 additions and 0 deletions
|
@ -204,3 +204,24 @@ complete -c $command -s N \
|
|||
complete -c $command -s k \
|
||||
-a 'dot neato fdp sfdp circo twopi nop Pretty-nop2 Pretty-osage patchwork' \
|
||||
-d 'Specify a render engine for a diagram'
|
||||
|
||||
complete -c $command -s T \
|
||||
-a '(__fish_graphviz__print_formats)' \
|
||||
-d 'Specify a render engine for a diagram'
|
||||
|
||||
complete -c $command -s l -d 'Specify a library for a diagram'
|
||||
complete -c $command -s n -f -d 'Specify a no-op flag for neato'
|
||||
complete -c $command -s o -d 'Specify the output file for a diagram'
|
||||
complete -c $command -s O -d 'Whether to infer the output file for a diagram'
|
||||
|
||||
complete -c $command -s P \
|
||||
-d 'Whether to generate a graph to show plugin configuration of the tool'
|
||||
|
||||
complete -c $command -s q -d 'Whether to suppress warnings for a diagram'
|
||||
complete -c $command -s s -f -d 'Specify the input scale for a diagram'
|
||||
|
||||
complete -c $command -s x \
|
||||
-d 'Whether to isolated nodes and peninsulas of a diagram'
|
||||
|
||||
complete -c $command -s y \
|
||||
-d 'Whether to invert the corrdinate system of a diagram'
|
||||
|
|
58
share/functions/__fish_graphviz__print_formats.fish
Normal file
58
share/functions/__fish_graphviz__print_formats.fish
Normal file
|
@ -0,0 +1,58 @@
|
|||
function __fish_graphviz__print_formats
|
||||
echo bmp \
|
||||
cgimage \
|
||||
canon \
|
||||
dot \
|
||||
gv \
|
||||
xdot \
|
||||
xdot1.2 \
|
||||
xdot1.4 \
|
||||
eps \
|
||||
exr \
|
||||
fig \
|
||||
gd \
|
||||
gd2 \
|
||||
gif \
|
||||
gtk \
|
||||
ico \
|
||||
imap \
|
||||
imap_np \
|
||||
ismap \
|
||||
cmap \
|
||||
cmapx \
|
||||
cmapx_np \
|
||||
jpg \
|
||||
jpeg \
|
||||
jpe \
|
||||
2000 \
|
||||
jp2 \
|
||||
json \
|
||||
json0 \
|
||||
dot_json \
|
||||
xdot_json \
|
||||
pdf \
|
||||
pic \
|
||||
pct \
|
||||
pict \
|
||||
plain \
|
||||
plain-ext \
|
||||
png \
|
||||
pov \
|
||||
ps \
|
||||
ps2 \
|
||||
psd \
|
||||
sgi \
|
||||
svg \
|
||||
svgz \
|
||||
tga \
|
||||
tif \
|
||||
tiff \
|
||||
tk \
|
||||
vml \
|
||||
vmlz \
|
||||
vrml \
|
||||
wbmp \
|
||||
webp \
|
||||
xlib \
|
||||
x11
|
||||
end
|
Loading…
Reference in a new issue