class MainListBuffer(Buffer): display_name = "Listing" description = "List of all known docker images and containers display in a single list" keybinds = { "d": "rm", # TODO: do also rmi "s": "start", "t": "stop", "r": "restart", "X": "kill", "p": "pause", "u": "unpause", "enter": "display-info", "b": "open-browser", "l": "logs", "f": "logs -f", "i": "inspect", "!": "toggle-live-updates", # TODO: rfe: move to global so this affects every buffer "@": "refresh", # FIXME: move to global and refactor & rewrite } def __init__(self, ui, docker_backend): self.ui = ui self.widget = MainListBox(ui, docker_backend) super().__init__() def process_realtime_event(self, event): self.widget.process_realtime_event(event)
def __init__(self, ui, docker_backend): self.ui = ui self.widget = MainListBox(ui, docker_backend) super().__init__()