/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/interactive.pyc (5417B)
Ñò yDVc @szdZddkZddkZddkZddkZddkZddkZeieƒZ dei fd„ƒYZ dS(sApplication base class. iÿÿÿÿNtInteractiveAppcBszeZdZeZdZdZd„Zd„Zd„Z d„Z d„Z d„Z d „Z d „Zd „Zd „ZRS( sGProvides "interactive mode" features. Refer to the cmd2_ and cmd_ documentation for details about subclassing and configuring this class. .. _cmd2: http://packages.python.org/cmd2/index.html .. _cmd: http://docs.python.org/library/cmd.html :param parent_app: The calling application (expected to be derived from :class:`cliff.main.App`). :param command_manager: A :class:`cliff.commandmanager.CommandManager` instance. :param stdin: Standard input stream :param stdout: Standard output stream s#Shell commands (type help ):s)Application commands (type help ):cCsv||_ttidƒ ptiiƒod|i|_n d|_||_ti i |dd|d|ƒdS(Ntisattys(%s) tttabtstdintstdout( t parent_appthasattrtsysRRtNAMEtprompttcommand_managertcmd2tCmdt__init__(tselfRR RR((s0/tmp/pip-build-lt8jXN/cliff/cliff/interactive.pyR$s  $  cCs)ti|iiƒ}|ii|ƒdS(N(tshlextsplittparsedtrawRtrun_subcommand(Rtlinet line_parts((s0/tmp/pip-build-lt8jXN/cliff/cliff/interactive.pytdefault.scGs/tii|||Œ}||i|ƒ7}|S(s¸Tab-completion for command prefix without completer delimiter. This method returns cmd style and cliff style commands matching provided command prefix (text). (R R t completenamest_complete_prefix(Rttexttignoredt completions((s0/tmp/pip-build-lt8jXN/cliff/cliff/interactive.pyR7scCs,g}|i|ƒD]}|||q~S(s²Default tab-completion for command prefix with completer delimiter. This method filters only cliff style commands matching provided command prefix (line) as cmd2 style commands cannot contain spaces. This method returns text + missing command part of matching commands. This method does not handle options in cmd2/cliff style commands, you must define complete_$method to handle them. (R(RRRtbegidxtendidxt_[1]tx((s0/tmp/pip-build-lt8jXN/cliff/cliff/interactive.pytcompletedefaultAs cCsl|p)g}|iD]\}}||q~Sg}|iD]'\}}|i|ƒo ||q>q>~S(s4Returns cliff style commands with a specific prefix.(R t startswith(RtprefixRtntvt_[2]((s0/tmp/pip-build-lt8jXN/cliff/cliff/interactive.pyRLs)cCs|idƒdS(Ns help help(R(R((s0/tmp/pip-build-lt8jXN/cliff/cliff/interactive.pyt help_helpRscCså|o~ti|ƒ}ditidgtid„|ƒƒƒ}t||ƒotii ||ƒS|i |i d|ƒƒn]tii ||ƒt g}|i D]\}}||q©~ƒ}|i|i|ddƒdS(Nt_tdocSs|idƒ S(t-(R"(R ((s0/tmp/pip-build-lt8jXN/cliff/cliff/interactive.pyt^sshelp iiP(RRtjoint itertoolstchaint takewhileRR R tdo_helpRRtsortedR t print_topicstapp_cmd_header(Rtargt arg_partst method_nameRR$R%t cmd_names((s0/tmp/pip-build-lt8jXN/cliff/cliff/interactive.pyR0Vs 0cCs?g}tii|ƒD]!}|idƒp ||qq~S(Ntdo__(R R t get_namesR"(RRR$((s0/tmp/pip-build-lt8jXN/cliff/cliff/interactive.pyR9qscCsuti|iiƒ}y%|ii|ƒ}|\}}}Wntj on#X||i_di|ƒ|i_ |S(Nt ( RRRRR t find_commandt ValueErrortcommandR,targs(Rt statementRtthe_cmdt cmd_factorytcmd_nametsub_argv((s0/tmp/pip-build-lt8jXN/cliff/cliff/interactive.pytprecmdzs cCs|iƒdS(N(t_cmdloop(R((s0/tmp/pip-build-lt8jXN/cliff/cliff/interactive.pytcmdloopŠs(t__name__t __module__t__doc__tTruet use_rawinputt doc_headerR3RRRR!RR'R0R9RDRF(((s0/tmp/pip-build-lt8jXN/cliff/cliff/interactive.pyRs    ( RIR-tloggingtlogging.handlersRRR t getLoggerRGtLOGR R(((s0/tmp/pip-build-lt8jXN/cliff/cliff/interactive.pyts