def run()

in cpp/ext/recipeext.py [0:0]


    def run(self):
        global test_names_to_output
        filename, recipe_name = self.arguments
        if recipe_name not in test_names_to_output:
            raise Exception(
                f'Could not locate recipe output for the recipe {filename}:{recipe_name}')
        recipe_output = test_names_to_output[recipe_name]

        self.options['start-after'] = f'StartRecipe("{recipe_name}")'
        self.options['end-before'] = f'EndRecipe("{recipe_name}")'
        self.options['language'] = 'cpp'

        out_nodes = LiteralInclude.run(self)

        output_container = container('', literal_block=True, classes=[
                                     'literal-block-wrapper'])
        literal_node = literal_block(recipe_output, recipe_output)
        caption_node = caption('Code Output', 'Code Output')
        output_container += caption_node
        output_container += literal_node

        return out_nodes + [output_container]