Skip to content

Commit

Permalink
pot: ui: image: Add pull binding.
Browse files Browse the repository at this point in the history
  • Loading branch information
gleidi-suse committed Nov 8, 2023
1 parent 19890d9 commit 591d767
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pot/ui/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class ImagesScreen(RefreshTableScreen):

BINDINGS = [
("d", "remove", "Remove"),
("p", "pull", "Pull"),
]

def __init__(self):
Expand All @@ -17,6 +18,10 @@ async def action_remove(self):
image = self.get_selection()
await self.get_backend().images.remove(image)

async def action_pull(self):
image = self.get_selection()
await self.get_backend().images.pull(image)

def _get_columns(self):
return ["id", "repository", "tag", "created", "size"]

Expand Down

0 comments on commit 591d767

Please sign in to comment.