Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
contego / home / tvault / .virtenv / lib / python2.7 / site-packages / cliff / command.pyc
Size: Mime:
ó
âEYc@syddlZddlZddlZddlmZejejƒdefd„ƒYƒZdej	fd„ƒYZ
dS(iÿÿÿÿN(targparsetCommandcBsbeZdZeZdZdZdd„Zd„Z	d„Z
d„Zej
d„ƒZd„ZRS(	sƒBase class for command plugins.

    :param app: Application instance invoking the command.
    :paramtype app: cliff.app.App

    tcCs||_||_||_dS(N(tapptapp_argstcmd_name(tselfRRR((sB/home/tvault/.virtenv/lib/python2.7/site-packages/cliff/command.pyt__init__#s			cCsC|jptj|jƒpd}|tjtƒkr?d}n|S(sReturn the command description.

        The default is to use the first line of the class' docstring
        as the description. Set the ``_description`` class attribute
        to a one-line description of a command to use a different
        value. This is useful for enabling translations, for example,
        with ``_description`` set to a string wrapped with a gettext
        translation marker.

        R(t_descriptiontinspecttgetdoct	__class__R(Rtdesc((sB/home/tvault/.virtenv/lib/python2.7/site-packages/cliff/command.pytget_description)s!	cCs|jS(sReturn the command epilog.(t_epilog(R((sB/home/tvault/.virtenv/lib/python2.7/site-packages/cliff/command.pyt
get_epilog?sc	Cs4tjd|jƒd|jƒd|dtƒ}|S(s4Return an :class:`argparse.ArgumentParser`.
        tdescriptiontepilogtprogtformatter_class(RtArgumentParserR
Rt_SmartHelpFormatter(Rt	prog_nametparser((sB/home/tvault/.virtenv/lib/python2.7/site-packages/cliff/command.pyt
get_parserCs		cCsdS(sfOverride to do something useful.

        The returned value will be returned by the program.
        N((Rtparsed_args((sB/home/tvault/.virtenv/lib/python2.7/site-packages/cliff/command.pyttake_actionNscCs|j|ƒpdS(s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`.

        Return the value returned by :meth:`take_action` or 0.
        i(R(RR((sB/home/tvault/.virtenv/lib/python2.7/site-packages/cliff/command.pytrunUsN(t__name__t
__module__t__doc__tFalset
deprecatedRtNoneRRR
RRtabctabstractmethodRR(((sB/home/tvault/.virtenv/lib/python2.7/site-packages/cliff/command.pyRs			RcBseZdZd„ZRS(sÓSmart help formatter to output raw help message if help contain 
.

    Some command help messages maybe have multiple line content, the built-in
    argparse.HelpFormatter wrap and split the content according to width, and
    ignore 
 in the raw help message, it merge multiple line content in one
    line to output, that looks messy. SmartHelpFormatter keep the raw help
    message format if it contain 
, and wrap long line like HelpFormatter
    behavior.
    cCs^d|kr|jƒn|g}g}x0|D](}|jtt|ƒj||ƒƒq.W|S(Ns
(t
splitlinestextendtsuperRt_split_lines(Rttexttwidthtlinest
wrap_linest	each_line((sB/home/tvault/.virtenv/lib/python2.7/site-packages/cliff/command.pyR'os!
 (RRRR'(((sB/home/tvault/.virtenv/lib/python2.7/site-packages/cliff/command.pyRds	(R"R	tsixtcliffRt
add_metaclasstABCMetatobjectRt
HelpFormatterR(((sB/home/tvault/.virtenv/lib/python2.7/site-packages/cliff/command.pyt<module>
sN