Skip to content

interactive_cli_pipeline

Handles sequence of Interactive User Dialogs, for Context Information.

InteractiveDialogsPipeline

Handles sequence of Interactive User Dialogs, for Context Information.

Source code in src/cookiecutter_python/handle/interactive_cli_pipeline.py
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
class InteractiveDialogsPipeline:
    """Handles sequence of Interactive User Dialogs, for Context Information."""

    dialogs = [
        'project-name',
    ]

    def process(self, request):
        """Process sequence of Interactive User Dialogs, for Context Information."""
        for dialog in self.dialogs:
            # Call the dialog method (ie ProjectNameDialog.dialog) of each dialog node
            request = NodeFactory.create(dialog).process(request)
        return request

process(request)

Process sequence of Interactive User Dialogs, for Context Information.

Source code in src/cookiecutter_python/handle/interactive_cli_pipeline.py
13
14
15
16
17
18
def process(self, request):
    """Process sequence of Interactive User Dialogs, for Context Information."""
    for dialog in self.dialogs:
        # Call the dialog method (ie ProjectNameDialog.dialog) of each dialog node
        request = NodeFactory.create(dialog).process(request)
    return request