diff --git a/README.md b/README.md index e5a3e24..f99c7e9 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ With its latest version you can easily visualize the complete state tree, gainin ## Changelog (latest versions) -### Version 0.13.2 +### Version 0.13 - [x] Added support for workspace switching - [x] Added plan summary in the screen title diff --git a/pyproject.toml b/pyproject.toml index c8bcd79..9a32893 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "tftui" -version = "0.13.2" +version = "0.13.3" description = "Terraform Textual User Interface" authors = ["Ido Avraham"] license = "Apache-2.0" diff --git a/tftui/__main__.py b/tftui/__main__.py index 7578bb3..dd2a4fb 100644 --- a/tftui/__main__.py +++ b/tftui/__main__.py @@ -390,9 +390,11 @@ async def manipulate_resources(self, what_to_do: str) -> None: await execute_async( ApplicationGlobals.executable, (what_to_do if what_to_do != "delete" else "state rm"), - ".".join([node.data.submodule, node.data.name]) - if node.data.submodule - else node.data.name, + ( + ".".join([node.data.submodule, node.data.name]) + if node.data.submodule + else node.data.name + ), ) async def perform_action(self) -> None: @@ -627,9 +629,11 @@ def action_fullscreen(self) -> None: return self.push_screen( FullTextModal( - self.tree.current_node.data.contents - if self.switcher.current == "resource" - else self.plan.fulltext, + ( + self.tree.current_node.data.contents + if self.switcher.current == "resource" + else self.plan.fulltext + ), self.switcher.current == "resource", ) ) @@ -638,7 +642,9 @@ def action_fullscreen(self) -> None: def action_sensitive(self) -> None: if self.switcher.current != "resource": return - fullname = f"{self.tree.current_node.data.submodule}.{self.tree.current_node.data.name}" + fullname = f"{self.tree.current_node.data.submodule}.{self.tree.current_node.data.name}".strip( + "." + ) if self.tree.current_node.data.contents is None: self.notify("Unable to display sensitive contents", severity="warning") else: