Open Media Library Platform
This commit is contained in:
commit
411ad5b16f
5849 changed files with 1778641 additions and 0 deletions
|
|
@ -0,0 +1,9 @@
|
|||
THIS DIRECTORY AND ALL FILES INCLUDED ARE DEPRECATED.
|
||||
|
||||
These are the old zsh completion functions for Twisted commands... they used
|
||||
to contain full completion functions, but now they've simply been replaced
|
||||
by the current "stub" code that delegates completion control to Twisted.
|
||||
|
||||
This directory and included files need to remain for several years in order
|
||||
to provide backwards-compatibility with an old version of the Twisted
|
||||
stub function that was shipped with Zsh.
|
||||
34
Linux/lib/python2.7/site-packages/twisted/python/zsh/_cftp
Normal file
34
Linux/lib/python2.7/site-packages/twisted/python/zsh/_cftp
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
#compdef cftp
|
||||
# This file is deprecated. See README.
|
||||
|
||||
# This is the ZSH completion file for Twisted commands. It calls the current
|
||||
# command-line with the special "--_shell-completion" option which is handled
|
||||
# by twisted.python.usage. t.p.usage then generates zsh code on stdout to
|
||||
# handle the completions for this particular command-line.
|
||||
#
|
||||
# 3rd parties that wish to provide zsh completion for commands that
|
||||
# use t.p.usage may copy this file and change the first line to reference
|
||||
# the name(s) of their command(s).
|
||||
#
|
||||
# This file is included in the official Zsh distribution as
|
||||
# Completion/Unix/Command/_twisted
|
||||
|
||||
# redirect stderr to /dev/null otherwise deprecation warnings may get puked
|
||||
# all over the user's terminal if completing options for mktap or other
|
||||
# deprecated commands. Redirect stderr to a file to debug errors.
|
||||
local cmd output
|
||||
cmd=("$words[@]" --_shell-completion zsh:$CURRENT)
|
||||
output=$("$cmd[@]" 2>/dev/null)
|
||||
|
||||
if [[ $output == "#compdef "* ]]; then
|
||||
# Looks like we got a valid completion function - so eval it to produce
|
||||
# the completion matches.
|
||||
eval $output
|
||||
else
|
||||
echo "\nCompletion error running command:" ${(qqq)cmd}
|
||||
echo -n "If output below is unhelpful you may need to edit this file and "
|
||||
echo "redirect stderr to a file."
|
||||
echo "Expected completion function, but instead got:"
|
||||
echo $output
|
||||
return 1
|
||||
fi
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
#compdef ckeygen
|
||||
# This file is deprecated. See README.
|
||||
|
||||
# This is the ZSH completion file for Twisted commands. It calls the current
|
||||
# command-line with the special "--_shell-completion" option which is handled
|
||||
# by twisted.python.usage. t.p.usage then generates zsh code on stdout to
|
||||
# handle the completions for this particular command-line.
|
||||
#
|
||||
# 3rd parties that wish to provide zsh completion for commands that
|
||||
# use t.p.usage may copy this file and change the first line to reference
|
||||
# the name(s) of their command(s).
|
||||
#
|
||||
# This file is included in the official Zsh distribution as
|
||||
# Completion/Unix/Command/_twisted
|
||||
|
||||
# redirect stderr to /dev/null otherwise deprecation warnings may get puked
|
||||
# all over the user's terminal if completing options for mktap or other
|
||||
# deprecated commands. Redirect stderr to a file to debug errors.
|
||||
local cmd output
|
||||
cmd=("$words[@]" --_shell-completion zsh:$CURRENT)
|
||||
output=$("$cmd[@]" 2>/dev/null)
|
||||
|
||||
if [[ $output == "#compdef "* ]]; then
|
||||
# Looks like we got a valid completion function - so eval it to produce
|
||||
# the completion matches.
|
||||
eval $output
|
||||
else
|
||||
echo "\nCompletion error running command:" ${(qqq)cmd}
|
||||
echo -n "If output below is unhelpful you may need to edit this file and "
|
||||
echo "redirect stderr to a file."
|
||||
echo "Expected completion function, but instead got:"
|
||||
echo $output
|
||||
return 1
|
||||
fi
|
||||
34
Linux/lib/python2.7/site-packages/twisted/python/zsh/_conch
Normal file
34
Linux/lib/python2.7/site-packages/twisted/python/zsh/_conch
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
#compdef conch
|
||||
# This file is deprecated. See README.
|
||||
|
||||
# This is the ZSH completion file for Twisted commands. It calls the current
|
||||
# command-line with the special "--_shell-completion" option which is handled
|
||||
# by twisted.python.usage. t.p.usage then generates zsh code on stdout to
|
||||
# handle the completions for this particular command-line.
|
||||
#
|
||||
# 3rd parties that wish to provide zsh completion for commands that
|
||||
# use t.p.usage may copy this file and change the first line to reference
|
||||
# the name(s) of their command(s).
|
||||
#
|
||||
# This file is included in the official Zsh distribution as
|
||||
# Completion/Unix/Command/_twisted
|
||||
|
||||
# redirect stderr to /dev/null otherwise deprecation warnings may get puked
|
||||
# all over the user's terminal if completing options for mktap or other
|
||||
# deprecated commands. Redirect stderr to a file to debug errors.
|
||||
local cmd output
|
||||
cmd=("$words[@]" --_shell-completion zsh:$CURRENT)
|
||||
output=$("$cmd[@]" 2>/dev/null)
|
||||
|
||||
if [[ $output == "#compdef "* ]]; then
|
||||
# Looks like we got a valid completion function - so eval it to produce
|
||||
# the completion matches.
|
||||
eval $output
|
||||
else
|
||||
echo "\nCompletion error running command:" ${(qqq)cmd}
|
||||
echo -n "If output below is unhelpful you may need to edit this file and "
|
||||
echo "redirect stderr to a file."
|
||||
echo "Expected completion function, but instead got:"
|
||||
echo $output
|
||||
return 1
|
||||
fi
|
||||
34
Linux/lib/python2.7/site-packages/twisted/python/zsh/_lore
Normal file
34
Linux/lib/python2.7/site-packages/twisted/python/zsh/_lore
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
#compdef lore
|
||||
# This file is deprecated. See README.
|
||||
|
||||
# This is the ZSH completion file for Twisted commands. It calls the current
|
||||
# command-line with the special "--_shell-completion" option which is handled
|
||||
# by twisted.python.usage. t.p.usage then generates zsh code on stdout to
|
||||
# handle the completions for this particular command-line.
|
||||
#
|
||||
# 3rd parties that wish to provide zsh completion for commands that
|
||||
# use t.p.usage may copy this file and change the first line to reference
|
||||
# the name(s) of their command(s).
|
||||
#
|
||||
# This file is included in the official Zsh distribution as
|
||||
# Completion/Unix/Command/_twisted
|
||||
|
||||
# redirect stderr to /dev/null otherwise deprecation warnings may get puked
|
||||
# all over the user's terminal if completing options for mktap or other
|
||||
# deprecated commands. Redirect stderr to a file to debug errors.
|
||||
local cmd output
|
||||
cmd=("$words[@]" --_shell-completion zsh:$CURRENT)
|
||||
output=$("$cmd[@]" 2>/dev/null)
|
||||
|
||||
if [[ $output == "#compdef "* ]]; then
|
||||
# Looks like we got a valid completion function - so eval it to produce
|
||||
# the completion matches.
|
||||
eval $output
|
||||
else
|
||||
echo "\nCompletion error running command:" ${(qqq)cmd}
|
||||
echo -n "If output below is unhelpful you may need to edit this file and "
|
||||
echo "redirect stderr to a file."
|
||||
echo "Expected completion function, but instead got:"
|
||||
echo $output
|
||||
return 1
|
||||
fi
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
#compdef manhole
|
||||
# This file is deprecated. See README.
|
||||
|
||||
# This is the ZSH completion file for Twisted commands. It calls the current
|
||||
# command-line with the special "--_shell-completion" option which is handled
|
||||
# by twisted.python.usage. t.p.usage then generates zsh code on stdout to
|
||||
# handle the completions for this particular command-line.
|
||||
#
|
||||
# 3rd parties that wish to provide zsh completion for commands that
|
||||
# use t.p.usage may copy this file and change the first line to reference
|
||||
# the name(s) of their command(s).
|
||||
#
|
||||
# This file is included in the official Zsh distribution as
|
||||
# Completion/Unix/Command/_twisted
|
||||
|
||||
# redirect stderr to /dev/null otherwise deprecation warnings may get puked
|
||||
# all over the user's terminal if completing options for mktap or other
|
||||
# deprecated commands. Redirect stderr to a file to debug errors.
|
||||
local cmd output
|
||||
cmd=("$words[@]" --_shell-completion zsh:$CURRENT)
|
||||
output=$("$cmd[@]" 2>/dev/null)
|
||||
|
||||
if [[ $output == "#compdef "* ]]; then
|
||||
# Looks like we got a valid completion function - so eval it to produce
|
||||
# the completion matches.
|
||||
eval $output
|
||||
else
|
||||
echo "\nCompletion error running command:" ${(qqq)cmd}
|
||||
echo -n "If output below is unhelpful you may need to edit this file and "
|
||||
echo "redirect stderr to a file."
|
||||
echo "Expected completion function, but instead got:"
|
||||
echo $output
|
||||
return 1
|
||||
fi
|
||||
34
Linux/lib/python2.7/site-packages/twisted/python/zsh/_mktap
Normal file
34
Linux/lib/python2.7/site-packages/twisted/python/zsh/_mktap
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
#compdef mktap
|
||||
# This file is deprecated. See README.
|
||||
|
||||
# This is the ZSH completion file for Twisted commands. It calls the current
|
||||
# command-line with the special "--_shell-completion" option which is handled
|
||||
# by twisted.python.usage. t.p.usage then generates zsh code on stdout to
|
||||
# handle the completions for this particular command-line.
|
||||
#
|
||||
# 3rd parties that wish to provide zsh completion for commands that
|
||||
# use t.p.usage may copy this file and change the first line to reference
|
||||
# the name(s) of their command(s).
|
||||
#
|
||||
# This file is included in the official Zsh distribution as
|
||||
# Completion/Unix/Command/_twisted
|
||||
|
||||
# redirect stderr to /dev/null otherwise deprecation warnings may get puked
|
||||
# all over the user's terminal if completing options for mktap or other
|
||||
# deprecated commands. Redirect stderr to a file to debug errors.
|
||||
local cmd output
|
||||
cmd=("$words[@]" --_shell-completion zsh:$CURRENT)
|
||||
output=$("$cmd[@]" 2>/dev/null)
|
||||
|
||||
if [[ $output == "#compdef "* ]]; then
|
||||
# Looks like we got a valid completion function - so eval it to produce
|
||||
# the completion matches.
|
||||
eval $output
|
||||
else
|
||||
echo "\nCompletion error running command:" ${(qqq)cmd}
|
||||
echo -n "If output below is unhelpful you may need to edit this file and "
|
||||
echo "redirect stderr to a file."
|
||||
echo "Expected completion function, but instead got:"
|
||||
echo $output
|
||||
return 1
|
||||
fi
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
#compdef pyhtmlizer
|
||||
# This file is deprecated. See README.
|
||||
|
||||
# This is the ZSH completion file for Twisted commands. It calls the current
|
||||
# command-line with the special "--_shell-completion" option which is handled
|
||||
# by twisted.python.usage. t.p.usage then generates zsh code on stdout to
|
||||
# handle the completions for this particular command-line.
|
||||
#
|
||||
# 3rd parties that wish to provide zsh completion for commands that
|
||||
# use t.p.usage may copy this file and change the first line to reference
|
||||
# the name(s) of their command(s).
|
||||
#
|
||||
# This file is included in the official Zsh distribution as
|
||||
# Completion/Unix/Command/_twisted
|
||||
|
||||
# redirect stderr to /dev/null otherwise deprecation warnings may get puked
|
||||
# all over the user's terminal if completing options for mktap or other
|
||||
# deprecated commands. Redirect stderr to a file to debug errors.
|
||||
local cmd output
|
||||
cmd=("$words[@]" --_shell-completion zsh:$CURRENT)
|
||||
output=$("$cmd[@]" 2>/dev/null)
|
||||
|
||||
if [[ $output == "#compdef "* ]]; then
|
||||
# Looks like we got a valid completion function - so eval it to produce
|
||||
# the completion matches.
|
||||
eval $output
|
||||
else
|
||||
echo "\nCompletion error running command:" ${(qqq)cmd}
|
||||
echo -n "If output below is unhelpful you may need to edit this file and "
|
||||
echo "redirect stderr to a file."
|
||||
echo "Expected completion function, but instead got:"
|
||||
echo $output
|
||||
return 1
|
||||
fi
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
#compdef tap2deb
|
||||
# This file is deprecated. See README.
|
||||
|
||||
# This is the ZSH completion file for Twisted commands. It calls the current
|
||||
# command-line with the special "--_shell-completion" option which is handled
|
||||
# by twisted.python.usage. t.p.usage then generates zsh code on stdout to
|
||||
# handle the completions for this particular command-line.
|
||||
#
|
||||
# 3rd parties that wish to provide zsh completion for commands that
|
||||
# use t.p.usage may copy this file and change the first line to reference
|
||||
# the name(s) of their command(s).
|
||||
#
|
||||
# This file is included in the official Zsh distribution as
|
||||
# Completion/Unix/Command/_twisted
|
||||
|
||||
# redirect stderr to /dev/null otherwise deprecation warnings may get puked
|
||||
# all over the user's terminal if completing options for mktap or other
|
||||
# deprecated commands. Redirect stderr to a file to debug errors.
|
||||
local cmd output
|
||||
cmd=("$words[@]" --_shell-completion zsh:$CURRENT)
|
||||
output=$("$cmd[@]" 2>/dev/null)
|
||||
|
||||
if [[ $output == "#compdef "* ]]; then
|
||||
# Looks like we got a valid completion function - so eval it to produce
|
||||
# the completion matches.
|
||||
eval $output
|
||||
else
|
||||
echo "\nCompletion error running command:" ${(qqq)cmd}
|
||||
echo -n "If output below is unhelpful you may need to edit this file and "
|
||||
echo "redirect stderr to a file."
|
||||
echo "Expected completion function, but instead got:"
|
||||
echo $output
|
||||
return 1
|
||||
fi
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
#compdef tap2rpm
|
||||
# This file is deprecated. See README.
|
||||
|
||||
# This is the ZSH completion file for Twisted commands. It calls the current
|
||||
# command-line with the special "--_shell-completion" option which is handled
|
||||
# by twisted.python.usage. t.p.usage then generates zsh code on stdout to
|
||||
# handle the completions for this particular command-line.
|
||||
#
|
||||
# 3rd parties that wish to provide zsh completion for commands that
|
||||
# use t.p.usage may copy this file and change the first line to reference
|
||||
# the name(s) of their command(s).
|
||||
#
|
||||
# This file is included in the official Zsh distribution as
|
||||
# Completion/Unix/Command/_twisted
|
||||
|
||||
# redirect stderr to /dev/null otherwise deprecation warnings may get puked
|
||||
# all over the user's terminal if completing options for mktap or other
|
||||
# deprecated commands. Redirect stderr to a file to debug errors.
|
||||
local cmd output
|
||||
cmd=("$words[@]" --_shell-completion zsh:$CURRENT)
|
||||
output=$("$cmd[@]" 2>/dev/null)
|
||||
|
||||
if [[ $output == "#compdef "* ]]; then
|
||||
# Looks like we got a valid completion function - so eval it to produce
|
||||
# the completion matches.
|
||||
eval $output
|
||||
else
|
||||
echo "\nCompletion error running command:" ${(qqq)cmd}
|
||||
echo -n "If output below is unhelpful you may need to edit this file and "
|
||||
echo "redirect stderr to a file."
|
||||
echo "Expected completion function, but instead got:"
|
||||
echo $output
|
||||
return 1
|
||||
fi
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
#compdef tapconvert
|
||||
# This file is deprecated. See README.
|
||||
|
||||
# This is the ZSH completion file for Twisted commands. It calls the current
|
||||
# command-line with the special "--_shell-completion" option which is handled
|
||||
# by twisted.python.usage. t.p.usage then generates zsh code on stdout to
|
||||
# handle the completions for this particular command-line.
|
||||
#
|
||||
# 3rd parties that wish to provide zsh completion for commands that
|
||||
# use t.p.usage may copy this file and change the first line to reference
|
||||
# the name(s) of their command(s).
|
||||
#
|
||||
# This file is included in the official Zsh distribution as
|
||||
# Completion/Unix/Command/_twisted
|
||||
|
||||
# redirect stderr to /dev/null otherwise deprecation warnings may get puked
|
||||
# all over the user's terminal if completing options for mktap or other
|
||||
# deprecated commands. Redirect stderr to a file to debug errors.
|
||||
local cmd output
|
||||
cmd=("$words[@]" --_shell-completion zsh:$CURRENT)
|
||||
output=$("$cmd[@]" 2>/dev/null)
|
||||
|
||||
if [[ $output == "#compdef "* ]]; then
|
||||
# Looks like we got a valid completion function - so eval it to produce
|
||||
# the completion matches.
|
||||
eval $output
|
||||
else
|
||||
echo "\nCompletion error running command:" ${(qqq)cmd}
|
||||
echo -n "If output below is unhelpful you may need to edit this file and "
|
||||
echo "redirect stderr to a file."
|
||||
echo "Expected completion function, but instead got:"
|
||||
echo $output
|
||||
return 1
|
||||
fi
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
#compdef tkconch
|
||||
# This file is deprecated. See README.
|
||||
|
||||
# This is the ZSH completion file for Twisted commands. It calls the current
|
||||
# command-line with the special "--_shell-completion" option which is handled
|
||||
# by twisted.python.usage. t.p.usage then generates zsh code on stdout to
|
||||
# handle the completions for this particular command-line.
|
||||
#
|
||||
# 3rd parties that wish to provide zsh completion for commands that
|
||||
# use t.p.usage may copy this file and change the first line to reference
|
||||
# the name(s) of their command(s).
|
||||
#
|
||||
# This file is included in the official Zsh distribution as
|
||||
# Completion/Unix/Command/_twisted
|
||||
|
||||
# redirect stderr to /dev/null otherwise deprecation warnings may get puked
|
||||
# all over the user's terminal if completing options for mktap or other
|
||||
# deprecated commands. Redirect stderr to a file to debug errors.
|
||||
local cmd output
|
||||
cmd=("$words[@]" --_shell-completion zsh:$CURRENT)
|
||||
output=$("$cmd[@]" 2>/dev/null)
|
||||
|
||||
if [[ $output == "#compdef "* ]]; then
|
||||
# Looks like we got a valid completion function - so eval it to produce
|
||||
# the completion matches.
|
||||
eval $output
|
||||
else
|
||||
echo "\nCompletion error running command:" ${(qqq)cmd}
|
||||
echo -n "If output below is unhelpful you may need to edit this file and "
|
||||
echo "redirect stderr to a file."
|
||||
echo "Expected completion function, but instead got:"
|
||||
echo $output
|
||||
return 1
|
||||
fi
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
#compdef tkmktap
|
||||
# This file is deprecated. See README.
|
||||
|
||||
# This is the ZSH completion file for Twisted commands. It calls the current
|
||||
# command-line with the special "--_shell-completion" option which is handled
|
||||
# by twisted.python.usage. t.p.usage then generates zsh code on stdout to
|
||||
# handle the completions for this particular command-line.
|
||||
#
|
||||
# 3rd parties that wish to provide zsh completion for commands that
|
||||
# use t.p.usage may copy this file and change the first line to reference
|
||||
# the name(s) of their command(s).
|
||||
#
|
||||
# This file is included in the official Zsh distribution as
|
||||
# Completion/Unix/Command/_twisted
|
||||
|
||||
# redirect stderr to /dev/null otherwise deprecation warnings may get puked
|
||||
# all over the user's terminal if completing options for mktap or other
|
||||
# deprecated commands. Redirect stderr to a file to debug errors.
|
||||
local cmd output
|
||||
cmd=("$words[@]" --_shell-completion zsh:$CURRENT)
|
||||
output=$("$cmd[@]" 2>/dev/null)
|
||||
|
||||
if [[ $output == "#compdef "* ]]; then
|
||||
# Looks like we got a valid completion function - so eval it to produce
|
||||
# the completion matches.
|
||||
eval $output
|
||||
else
|
||||
echo "\nCompletion error running command:" ${(qqq)cmd}
|
||||
echo -n "If output below is unhelpful you may need to edit this file and "
|
||||
echo "redirect stderr to a file."
|
||||
echo "Expected completion function, but instead got:"
|
||||
echo $output
|
||||
return 1
|
||||
fi
|
||||
34
Linux/lib/python2.7/site-packages/twisted/python/zsh/_trial
Normal file
34
Linux/lib/python2.7/site-packages/twisted/python/zsh/_trial
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
#compdef trial
|
||||
# This file is deprecated. See README.
|
||||
|
||||
# This is the ZSH completion file for Twisted commands. It calls the current
|
||||
# command-line with the special "--_shell-completion" option which is handled
|
||||
# by twisted.python.usage. t.p.usage then generates zsh code on stdout to
|
||||
# handle the completions for this particular command-line.
|
||||
#
|
||||
# 3rd parties that wish to provide zsh completion for commands that
|
||||
# use t.p.usage may copy this file and change the first line to reference
|
||||
# the name(s) of their command(s).
|
||||
#
|
||||
# This file is included in the official Zsh distribution as
|
||||
# Completion/Unix/Command/_twisted
|
||||
|
||||
# redirect stderr to /dev/null otherwise deprecation warnings may get puked
|
||||
# all over the user's terminal if completing options for mktap or other
|
||||
# deprecated commands. Redirect stderr to a file to debug errors.
|
||||
local cmd output
|
||||
cmd=("$words[@]" --_shell-completion zsh:$CURRENT)
|
||||
output=$("$cmd[@]" 2>/dev/null)
|
||||
|
||||
if [[ $output == "#compdef "* ]]; then
|
||||
# Looks like we got a valid completion function - so eval it to produce
|
||||
# the completion matches.
|
||||
eval $output
|
||||
else
|
||||
echo "\nCompletion error running command:" ${(qqq)cmd}
|
||||
echo -n "If output below is unhelpful you may need to edit this file and "
|
||||
echo "redirect stderr to a file."
|
||||
echo "Expected completion function, but instead got:"
|
||||
echo $output
|
||||
return 1
|
||||
fi
|
||||
34
Linux/lib/python2.7/site-packages/twisted/python/zsh/_twistd
Normal file
34
Linux/lib/python2.7/site-packages/twisted/python/zsh/_twistd
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
#compdef twistd
|
||||
# This file is deprecated. See README.
|
||||
|
||||
# This is the ZSH completion file for Twisted commands. It calls the current
|
||||
# command-line with the special "--_shell-completion" option which is handled
|
||||
# by twisted.python.usage. t.p.usage then generates zsh code on stdout to
|
||||
# handle the completions for this particular command-line.
|
||||
#
|
||||
# 3rd parties that wish to provide zsh completion for commands that
|
||||
# use t.p.usage may copy this file and change the first line to reference
|
||||
# the name(s) of their command(s).
|
||||
#
|
||||
# This file is included in the official Zsh distribution as
|
||||
# Completion/Unix/Command/_twisted
|
||||
|
||||
# redirect stderr to /dev/null otherwise deprecation warnings may get puked
|
||||
# all over the user's terminal if completing options for mktap or other
|
||||
# deprecated commands. Redirect stderr to a file to debug errors.
|
||||
local cmd output
|
||||
cmd=("$words[@]" --_shell-completion zsh:$CURRENT)
|
||||
output=$("$cmd[@]" 2>/dev/null)
|
||||
|
||||
if [[ $output == "#compdef "* ]]; then
|
||||
# Looks like we got a valid completion function - so eval it to produce
|
||||
# the completion matches.
|
||||
eval $output
|
||||
else
|
||||
echo "\nCompletion error running command:" ${(qqq)cmd}
|
||||
echo -n "If output below is unhelpful you may need to edit this file and "
|
||||
echo "redirect stderr to a file."
|
||||
echo "Expected completion function, but instead got:"
|
||||
echo $output
|
||||
return 1
|
||||
fi
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
#compdef websetroot
|
||||
# This file is deprecated. See README.
|
||||
|
||||
# This is the ZSH completion file for Twisted commands. It calls the current
|
||||
# command-line with the special "--_shell-completion" option which is handled
|
||||
# by twisted.python.usage. t.p.usage then generates zsh code on stdout to
|
||||
# handle the completions for this particular command-line.
|
||||
#
|
||||
# 3rd parties that wish to provide zsh completion for commands that
|
||||
# use t.p.usage may copy this file and change the first line to reference
|
||||
# the name(s) of their command(s).
|
||||
#
|
||||
# This file is included in the official Zsh distribution as
|
||||
# Completion/Unix/Command/_twisted
|
||||
|
||||
# redirect stderr to /dev/null otherwise deprecation warnings may get puked
|
||||
# all over the user's terminal if completing options for mktap or other
|
||||
# deprecated commands. Redirect stderr to a file to debug errors.
|
||||
local cmd output
|
||||
cmd=("$words[@]" --_shell-completion zsh:$CURRENT)
|
||||
output=$("$cmd[@]" 2>/dev/null)
|
||||
|
||||
if [[ $output == "#compdef "* ]]; then
|
||||
# Looks like we got a valid completion function - so eval it to produce
|
||||
# the completion matches.
|
||||
eval $output
|
||||
else
|
||||
echo "\nCompletion error running command:" ${(qqq)cmd}
|
||||
echo -n "If output below is unhelpful you may need to edit this file and "
|
||||
echo "redirect stderr to a file."
|
||||
echo "Expected completion function, but instead got:"
|
||||
echo $output
|
||||
return 1
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue