def _build_display()

in azext_edge/edge/providers/orchestration/work.py [0:0]


    def _build_display(self):
        pre_check_cat_desc = "Pre-Flight"
        self._display.add_category(WorkCategoryKey.PRE_FLIGHT, pre_check_cat_desc, skipped=not self._pre_flight)
        self._display.add_step(WorkCategoryKey.PRE_FLIGHT, WorkStepKey.REG_RP, "Ensure registered resource providers")
        self._display.add_step(
            WorkCategoryKey.PRE_FLIGHT, WorkStepKey.ENUMERATE_PRE_FLIGHT, "Enumerate pre-flight checks"
        )

        if self._apply_foundation:
            self._display.add_category(WorkCategoryKey.ENABLE_IOT_OPS, "Enablement")
            self._display.add_step(
                WorkCategoryKey.ENABLE_IOT_OPS, WorkStepKey.WHAT_IF_ENABLEMENT, "What-If evaluation"
            )
            self._display.add_step(
                WorkCategoryKey.ENABLE_IOT_OPS,
                WorkStepKey.DEPLOY_ENABLEMENT,
                "Install foundation layer",
                self._format_enablement_desc(),
            )

        if self._targets.instance_name:
            self._display.add_category(
                WorkCategoryKey.DEPLOY_IOT_OPS, "Deploy IoT Operations", False, self._format_instance_desc()
            )
            self._display.add_step(
                WorkCategoryKey.DEPLOY_IOT_OPS,
                WorkStepKey.DEPLOY_INSTANCE,
                f"Create instance [cyan]{self._targets.instance_name}",
                self._format_instance_config_desc(),
            )
            self._display.add_step(
                WorkCategoryKey.DEPLOY_IOT_OPS,
                WorkStepKey.DEPLOY_RESOURCES,
                "Apply default resources",
            )