/usr/lib/python2.6/site-packages/cliff
Edit: /usr/lib/python2.6/site-packages/cliff/command.pyc (2220B)
Ñò
yDVc @ s\ d d k Z d d k Z d d k Z d d k Z e i e i ƒ d e f d „ ƒ Yƒ Z d S( iÿÿÿÿNt Commandc B sM e Z d Z e Z d d „ Z d „ Z d „ Z e i
d „ ƒ Z d „ Z RS( s‚ Base class for command plugins.
:param app: Application instance invoking the command.
:paramtype app: cliff.app.App
c C s | | _ | | _ | | _ d S( N( t appt app_argst cmd_name( t selfR R R ( ( s, /tmp/pip-build-lt8jXN/cliff/cliff/command.pyt __init__ s c C s t i | i ƒ p d S( s( Return the command description.
t ( t inspectt getdoct __class__( R ( ( s, /tmp/pip-build-lt8jXN/cliff/cliff/command.pyt get_description s c C s" t i d | i ƒ d | ƒ } | S( s4 Return an :class:`argparse.ArgumentParser`.
t descriptiont prog( t argparset ArgumentParserR
( R t prog_namet parser( ( s, /tmp/pip-build-lt8jXN/cliff/cliff/command.pyt
get_parser s c C s d S( s) Override to do something useful.
N( ( R t parsed_args( ( s, /tmp/pip-build-lt8jXN/cliff/cliff/command.pyt take_action' s c C s | i | ƒ d S( sA Invoked by the application when the command is run.
Developers implementing commands should override
:meth:`take_action`.
Developers creating new command base classes (such as
:class:`Lister` and :class:`ShowOne`) should override this
method to wrap :meth:`take_action`.
i ( R ( R R ( ( s, /tmp/pip-build-lt8jXN/cliff/cliff/command.pyt run, s
N(
t __name__t
__module__t __doc__t Falset
deprecatedt NoneR R
R t abct abstractmethodR R ( ( ( s, /tmp/pip-build-lt8jXN/cliff/cliff/command.pyR s ( R R
R t sixt
add_metaclasst ABCMetat objectR ( ( ( s, /tmp/pip-build-lt8jXN/cliff/cliff/command.pyt
s