class Swarmy::App

Overview

The interactive service browser: lists swarm services, drills into a service's tasks, and can exec into or tail logs from a running task.

Defined in:

swarmy/app.cr

Constant Summary

LIST_CHROME_ROWS = 5

Non-list chrome around the service rows: title, blank line, header, trailing blank line, and footer/prompt — each takes one terminal row.

SHELLS = ["/bin/bash", "/bin/sh"]

Constructors

Instance Method Summary

Constructor Detail

def self.new(docker : Docker, filter : String | Nil = nil) #

Instance Method Detail

def quit? : Bool #

Whether the user chose to quit the whole app (vs. going back to the welcome screen).


def run #

Runs the service list loop until the user backs out or quits.