INNER CODE UNIT · Python

search_input

idoavrah/terraform-tui · src/tftui/app.py:153

    def search_input(self) -> Input:
        return self.query_one("#search", Input)

    @property
    def view(self) -> str:
        return self.switcher.current or TREE

    def _show(self, view: str, title: str = "") -> None:
        self.switcher.current = view
        if view == TREE and not title:
            title = _selection_title(len(self.state_tree.selected))
        self.switcher.border_title = title

    # --------------------------------------------------------------- startup

    @work(exclusive=True, group="state")
    async def startup(self) -> None:
        """Initialise Terraform if asked to, then load the state."""

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…