INNER CODE UNIT · Python
plan_view
idoavrah/terraform-tui · src/tftui/app.py:145
def plan_view(self) -> PlanView:
return self.query_one(f"#{PLAN}", PlanView)
@property
def switcher(self) -> ContentSwitcher:
return self.query_one("#switcher", ContentSwitcher)
@property
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: