web: quoted commands run; a test checks every one !497

merged merged by cmc on 2026-09-28 22:17 UTC · krz/gitbay:web-settings-commands into main

Discussion

cmc

Web pages quote commands that run.

  • The settings page quotes ssh git@<host> whoami and ssh git@<host> token create --name laptop (the server's names, without the CLI's grouping words) and gitbay auth export.
  • TestTemplateQuotedCommandsResolve (cmd/gitbay/templatecmds_test.go) takes every command a template quotes in <code>, <pre class="quickstart"> or <pre class="message">, and checks it: a gitbay … line must reach a command, not stop at a group; an ssh git@<host> … line must match a registered command with nothing left over. Placeholders (<name>, ..., template actions, flags) end the checked part.
  • CHANGELOG.

The auth summary and help half of #263 landed with cli-ux-help (!485).

Stacked on !496 (web-audit-fixes).

Closes #263