PhoenixGenApiTui.App (phoenix_gen_api_tui v0.1.0)

Copy Markdown View Source

Main TUI application using ExRatatui.App behaviour.

Renders the two-panel layout and delegates key handling to PhoenixGenApiTui.State.

Transports

This module works across all three ExRatatui transports without changes:

  • LocalPhoenixGenApiTui.App.start_link(state: state) renders to the local terminal.
  • SSHPhoenixGenApiTui.App.start_link(transport: :ssh, app_opts: [state: state], ...) serves each SSH client an isolated explorer session.
  • DistributedPhoenixGenApiTui.App.start_link(transport: :distributed, app_opts: [state: state]) starts a listener; remote nodes attach via ExRatatui.Distributed.attach(node, PhoenixGenApiTui.App).

In practice, use PhoenixGenApiTui.explore/2 which handles the wiring for you.