コード例 #1
0
ファイル: commands.py プロジェクト: aws/aws-cli
 def __call__(self, args, parsed_globals):
     # Create an event handler for a Provider Document
     instance = self.EventHandlerClass(self)
     # Now generate all of the events for a Provider document.
     # We pass ourselves along so that we can, in turn, get passed
     # to all event handlers.
     docevents.generate_events(self.session, self)
     self.renderer.render(self.doc.getvalue())
     instance.unregister()
コード例 #2
0
ファイル: help.py プロジェクト: lovejavaee/aws-cli
    def __call__(self, args, parsed_globals):
        if args:
            subcommand_parser = ArgTableArgParser({}, self.subcommand_table)
            parsed, remaining = subcommand_parser.parse_known_args(args)
            if getattr(parsed, 'subcommand', None) is not None:
                return self.subcommand_table[parsed.subcommand](remaining,
                                                                parsed_globals)

        # Create an event handler for a Provider Document
        instance = self.EventHandlerClass(self)
        # Now generate all of the events for a Provider document.
        # We pass ourselves along so that we can, in turn, get passed
        # to all event handlers.
        docevents.generate_events(self.session, self)
        self.renderer.render(self.doc.getvalue())
        instance.unregister()