Back to index

enigmail  1.4.3
Public Member Functions | Static Public Attributes
build.manifestparser.WriteCLI Class Reference
Inheritance diagram for build.manifestparser.WriteCLI:
Inheritance graph
Collaboration diagram for build.manifestparser.WriteCLI:
Collaboration graph

List of all members.

Public Member Functions

def __call__
def parser

Static Public Attributes

string usage = '%prog [options] write manifest <manifest> -tag1 -tag2 --key1=value1 --key2=value2 ...'

Detailed Description

write a manifest based on a query

Definition at line 963 of file

Member Function Documentation

def build.manifestparser.WriteCLI.__call__ (   self,

Definition at line 968 of file

00969     def __call__(self, options, args):
00971         # parse the arguments
00972         try:
00973             kwargs, tags, args = parse_args(args)
00974         except ParserError, e:
00975             self._parser.error(e.message)
00977         # make sure we have some manifests, otherwise it will
00978         # be quite boring
00979         if not args:
00980             HelpCLI(self._parser)(options, ['write'])
00981             return
00983         # read the manifests
00984         # TODO: should probably ensure these exist here
00985         manifests = ManifestParser()
00988         # print the resultant query
00989         manifests.write(global_tags=tags, global_kwargs=kwargs)

Here is the call graph for this function:

def build.manifestparser.CLICommand.parser (   self) [inherited]

Reimplemented in build.manifestparser.CreateCLI.

Definition at line 899 of file

00900     def parser(self):
00901       return OptionParser(usage=self.usage, description=self.__doc__,
00902                           add_help_option=False)

Here is the caller graph for this function:

Member Data Documentation

string build.manifestparser.WriteCLI.usage = '%prog [options] write manifest <manifest> -tag1 -tag2 --key1=value1 --key2=value2 ...' [static]

Reimplemented from build.manifestparser.CLICommand.

Definition at line 967 of file

The documentation for this class was generated from the following file: