/usr/lib/python2.6/site-packages/cliff
NameSizeModeActions
formatters/-0755rm
tests/-0755rm
app.py147930644editdlrm
app.pyc120720644editdlrm
argparse.py6130644editdlrm
argparse.pyc11150644editdlrm
command.py13750644editdlrm
command.pyc22200644editdlrm
commandmanager.py30480644editdlrm
commandmanager.pyc37800644editdlrm
complete.py51760644editdlrm
complete.pyc78700644editdlrm
display.py31780644editdlrm
display.pyc41990644editdlrm
help.py31240644editdlrm
help.pyc32440644editdlrm
interactive.py51370644editdlrm
interactive.pyc54170644editdlrm
lister.py19470644editdlrm
lister.pyc22490644editdlrm
show.py16350644editdlrm
show.pyc22590644editdlrm
utils.py29500644editdlrm
utils.pyc19750644editdlrm
__init__.py00644editdlrm
__init__.pyc1320644editdlrm
Edit: /usr/lib/python2.6/site-packages/cliff/complete.pyc (7870B)
Ñò yDVc@s¬dZddkZddkZddkZddklZddd„ƒYZdefd„ƒYZdefd „ƒYZ d efd „ƒYZ d ei fd „ƒYZ dS(sBash completion for the CLI. iÿÿÿÿN(tcommandtCompleteDictionarycBs;eZdZd„Zd„Zd„Zd„Zd„ZRS(s#dictionary for bash completion cCs h|_dS(N(t _dictionary(tself((s-/tmp/pip-build-lt8jXN/cliff/cliff/complete.pyt__init__scCs[did„|Dƒƒ}|i}x$|d D]}|i|hƒ}q-W|||ds iÿÿÿÿ(tjoinRt setdefault(RRtactionstoptstrtdictotsubcmd((s-/tmp/pip-build-lt8jXN/cliff/cliff/complete.pyt add_commands   cCs&did„t|iiƒƒDƒƒS(NRcssx|] }|VqWdS(N((Rtk((s-/tmp/pip-build-lt8jXN/cliff/cliff/complete.pys s (R tsortedRtkeys(R((s-/tmp/pip-build-lt8jXN/cliff/cliff/complete.pyt get_commandssc CsÁg}t|iƒƒ}x¢|D]š}|o|d|n|}||}t|tiƒo|i||fƒqdit|iƒƒƒ}|i||fƒ||i||ƒ7}qW|S(Nt_R(RRt isinstancetsixt string_typestappendR t_get_data_recurse( Rt dictionarytpathtrayRtcmdtnametvaluetcmdlist((s-/tmp/pip-build-lt8jXN/cliff/cliff/complete.pyRs cCst|i|idƒƒS(Nt(RRR(R((s-/tmp/pip-build-lt8jXN/cliff/cliff/complete.pytget_data-s(t__name__t __module__t__doc__RRRRR#(((s-/tmp/pip-build-lt8jXN/cliff/cliff/complete.pyR s     tCompleteShellBasecBs eZdZd„Zd„ZRS(s.base class for bash completion generation cCst|ƒ|_||_dS(N(tstrRtoutput(RRR)((s-/tmp/pip-build-lt8jXN/cliff/cliff/complete.pyR4scCss|ii|iƒƒ|iidi|ƒƒx'|D]}|iidi|Œƒq6W|ii|iƒƒdS(Ns cmds='{0}' s cmds_{0}='{1}' (R)twritet get_headertformatt get_trailer(Rtcmdotdatatdatum((s-/tmp/pip-build-lt8jXN/cliff/cliff/complete.pyR*8s (R$R%R&RR*(((s-/tmp/pip-build-lt8jXN/cliff/cliff/complete.pyR'1s tCompleteNoCodecBs)eZdZd„Zd„Zd„ZRS(scompletion with no code cCstt|ƒi||ƒdS(N(tsuperR1R(RRR)((s-/tmp/pip-build-lt8jXN/cliff/cliff/complete.pyRCscCsdS(NR"((R((s-/tmp/pip-build-lt8jXN/cliff/cliff/complete.pyR+FscCsdS(NR"((R((s-/tmp/pip-build-lt8jXN/cliff/cliff/complete.pyR-Is(R$R%R&RR+R-(((s-/tmp/pip-build-lt8jXN/cliff/cliff/complete.pyR1@s  t CompleteBashcBs)eZdZd„Zd„Zd„ZRS(scompletion for bash cCstt|ƒi||ƒdS(N(R2R3R(RRR)((s-/tmp/pip-build-lt8jXN/cliff/cliff/complete.pyRPscCsd|idS(NRsk() { local cur prev words COMPREPLY=() _get_comp_words_by_ref -n : cur prev words # Command data: (R(R((s-/tmp/pip-build-lt8jXN/cliff/cliff/complete.pyR+Ss cCsd|id|idS(NsÆ cmd="" words[0]="" completed="${cmds}" for var in "${words[@]:1}" do if [[ ${var} == -* ]] ; then break fi if [ -z "${cmd}" ] ; then proposed="${var}" else proposed="${cmd}_${var}" fi local i="cmds_${proposed}" local comp="${!i}" if [ -z "${comp}" ] ; then break fi if [[ ${comp} == -* ]] ; then if [[ ${cur} != -* ]] ; then completed="" break fi fi cmd="${proposed}" completed="${comp}" done if [ -z "${completed}" ] ; then COMPREPLY=( $( compgen -f -- "$cur" ) $( compgen -d -- "$cur" ) ) else COMPREPLY=( $(compgen -W "${completed}" -- ${cur}) ) fi return 0 } complete -F _Rs (R(R((s-/tmp/pip-build-lt8jXN/cliff/cliff/complete.pyR-]s%(R$R%R&RR+R-(((s-/tmp/pip-build-lt8jXN/cliff/cliff/complete.pyR3Ms  tCompleteCommandcBsEeZdZeiedƒZd„Zd„Zd„Zd„Z RS(s"print bash completion command s.CompleteCommandcCs2tt|ƒi||ƒtiddƒ|_dS(Nt namespacescliff.formatter.completion(R2R4Rt stevedoretExtensionManagert _formatters(Rtapptapp_args((s-/tmp/pip-build-lt8jXN/cliff/cliff/complete.pyR‹s c Csott|ƒi|ƒ}|idddddddƒ|iddddd d t|iiƒƒdd ƒ|S( Ns--nametdefaulttmetavarsthelps/Command name to support with command completions--shelltbashstchoicess8Shell being used. Use none for data only (default: bash)(R2R4t get_parsert add_argumenttNoneRR8tnames(Rt prog_nametparser((s-/tmp/pip-build-lt8jXN/cliff/cliff/complete.pyR@‘sc Cs|iii|ƒ}|\}}}||i|ƒ}|iio |}ndi|ii|gƒ}|i|ƒ}|iƒS(NR(R9tcommand_managert find_commandtinteractive_modeR tNAMER@t_get_optional_actions( RRtthe_cmdt cmd_factorytcmd_namet search_argsRt full_namet cmd_parser((s-/tmp/pip-build-lt8jXN/cliff/cliff/complete.pyt get_actions¢s  cCsè|iid|ƒ|ip |ii}y|i|ii}Wn&tj ot d|iƒ‚nX|||ii ƒ}t ƒ}x=|ii D]/}|di ƒ}|i||i|ƒƒq•W|i|iƒ|iƒƒdS(Nstake_action(%s)sUnknown shell syntax %ri(tlogtdebugRR9RIR8tshelltplugintKeyErrort RuntimeErrortstdoutRRFtsplitRRQR*RR#(Rt parsed_argsRt shell_factoryRTRRR((s-/tmp/pip-build-lt8jXN/cliff/cliff/complete.pyt take_action­s  ( R$R%R&tloggingt getLoggerRRRR@RQR\(((s-/tmp/pip-build-lt8jXN/cliff/cliff/complete.pyR4…s    (( R&R]RR6tcliffRRtobjectR'R1R3tCommandR4(((s-/tmp/pip-build-lt8jXN/cliff/cliff/complete.pyts   $ 8