Skip to content

v0.5.0

Choose a tag to compare

@github-actions github-actions released this 25 Nov 15:16
· 15 commits to master since this release

Added

  • depends_on = ["app", ...] holds an app until those apps are ready. Waiting tiles show waiting for <app>…, and say why if the dependency is stuck.
  • ready = { tcp = port }, { http = "url" } or { log = 'regex' }, with optional timeout_ms, says when an app counts as ready. HTTP checks accept any response below 500 and ignore certificate errors.
  • skip_if_ready = true: an app whose ready check already passes isn't launched, and shows already running.
  • [[task]] entries: setup steps (builds, installs) that run one at a time, each to completion, before any app starts. A failed task stops startup and stays on screen with its output.
  • [defaults] table: per-app keys shared by every [[app]].
  • --only a,b and --skip a,b on the command line pick which apps to run from one config. --only brings in the apps they depend on.
  • %VAR% in command, cwd, env values, log, url and ready is expanded from the app's env and the host's environment, e.g. env = { PATH = 'C:\tools;%PATH%' }.
  • brady-ctl.exe, a console program for controlling a running host: status prints every app's state, readiness, exit code and the reason it's waiting or failed as JSON; start, stop and restart act on one app; tail prints an app's console text. brady-bunch.exe accepts the same commands as --status etc.
  • Per-app log = 'path' copies the app's console output to a file while it still shows in the tile.
  • Top-level event_log = 'path' records launches, exits, readiness, restarts, and each shutdown step with which step stopped each app and how long it took. brady-ctl status shows the same as last_stop.
  • Per-app url: a link in the tile header that opens in the browser.
  • Per-app quick_edit = true to keep the console's QuickEdit mode.

Fixed

  • Commands with nested quotes, such as cmd /c ""%TOOL%" --flag" with a path containing spaces, failed to start: conhost.exe re-parses its command line and dropped the inner quotes. Console apps now start through brady-shim.exe, which runs the command line exactly as written.
  • Clicking a console tile could freeze its app: with QuickEdit on, the click started a text selection that blocked the app's next console write. QuickEdit is now off in embedded consoles.
  • An app's exe is looked up on the PATH from its own env, and relative to its own cwd. A missing exe now shows failed: <name> not found instead of a launch error from conhost.

Changed

  • Console apps keep their console open after they exit, showing their last output and exit code. Press Enter in it to run the app again.
  • Shutdown stops each app after the apps that depend on it, otherwise in reverse config order as before.
  • Release zips include brady-shim.exe and brady-ctl.exe, which must stay next to brady-bunch.exe.