new framework
This commit is contained in:
@@ -71,6 +71,7 @@ module BBS
|
||||
when :body then run_body(step)
|
||||
when :output then run_output(step)
|
||||
when :tui then run_tui(step)
|
||||
when :app then run_app(step)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -349,6 +350,15 @@ module BBS
|
||||
:halt
|
||||
end
|
||||
|
||||
def run_app(step)
|
||||
builder = step[:definition]
|
||||
app = builder.build(session: @session, session_id: @session_id, context: @ctx)
|
||||
app.run
|
||||
nil
|
||||
rescue IOError, Errno::EPIPE, Errno::ECONNRESET
|
||||
:halt
|
||||
end
|
||||
|
||||
# ── helpers ────────────────────────────────────────────────────────────────
|
||||
|
||||
def strip_md(text)
|
||||
|
||||
Reference in New Issue
Block a user