Skip to content

Left-align the welcome message and remove the Creator line - #27

Merged
CGuiho merged 1 commit into
CGuiho:mainfrom
cguiho-itron:welcome-left-align
Oct 13, 2026
Merged

CGuiho merged 1 commit into
CGuiho:mainfrom
cguiho-itron:welcome-left-align

Conversation

@cguiho-itron

@cguiho-itron cguiho-itron commented Oct 13, 2026 •

Copy link
Copy Markdown

Summary

  • Left-align the welcome printed by a bare xdocs: logo rows, the tagline and the GUIHO · Cristóvão GUIHO line start at column 0 (centering removed). Colours unchanged.
  • Remove the organization GUIHO detail line (this repo's creator/organization line).
  • Detail rows are Capital case, start at column 0 with aligned values, and now end with Author GUIHO (www.guiho.co); www.guiho.co is painted in the xdocs accent colour (warm brown, bold) when colour is on.
  • Exactly one blank line between the author line and the details, and exactly one blank line before and after the whole welcome.
  • Update-notice behaviour unchanged. Removed dead code: center() helper and the innerWidth computation.
  • Tests: new internal/welcome/welcome_test.go (exact plain layout, coloured alignment and accent), updated cmd/root_test.go; XDocs descriptor internal/welcome/welcome.xdocs.md updated.

Before



      ██╗  ██╗██████╗   ██████╗   ██████╗ ███████╗
      ╚██╗██╔╝██╔══██╗ ██╔═══██╗ ██╔════╝ ██╔════╝
       ╚███╔╝ ██║  ██║ ██║   ██║ ██║      ███████╗
       ██╔██╗ ██║  ██║ ██║   ██║ ██║      ╚════██║
      ██╔╝╚██╗██████╔╝ ╚██████╔╝ ╚██████╗ ███████║
      ╚═╝  ╚═╝╚═════╝   ╚═════╝   ╚═════╝ ╚══════╝
  Structured documentation for codebases and AI agents
               GUIHO  ·  Cristóvão GUIHO


  organization  GUIHO
  platform      Linux x64
  version       v0.12.0

Run xdocs --help to see available commands.


After


██╗  ██╗██████╗   ██████╗   ██████╗ ███████╗
╚██╗██╔╝██╔══██╗ ██╔═══██╗ ██╔════╝ ██╔════╝
 ╚███╔╝ ██║  ██║ ██║   ██║ ██║      ███████╗
 ██╔██╗ ██║  ██║ ██║   ██║ ██║      ╚════██║
██╔╝╚██╗██████╔╝ ╚██████╔╝ ╚██████╗ ███████║
╚═╝  ╚═╝╚═════╝   ╚═════╝   ╚═════╝ ╚══════╝
Structured documentation for codebases and AI agents
GUIHO  ·  Cristóvão GUIHO

Platform  Linux x64
Version   v0.12.0
Author    GUIHO (www.guiho.co)

Run xdocs --help to see available commands.

Test results

  • gofmt -w main.go cmd internal devops: clean
  • go vet ./...: pass
  • go test -count=1 ./...: all packages pass
  • xdocs doctor: same 10 pre-existing errors as main (undocumented files under docs/validation), none related to this change

Render the bare xdocs welcome flush left: logo rows, tagline and the
"GUIHO  ·  Cristóvão GUIHO" author line now start at column 0 instead of
being left-padded by the center() helper. Drop the "organization GUIHO"
detail line and print Capital-case Platform, Version and Author detail
rows at column 0 with aligned values, separated from the author line by
exactly one blank line. Paint www.guiho.co in the xdocs accent colour.
Frame the welcome with exactly one blank line before and after. Plain
output stays ANSI-free and the update-notice behaviour is unchanged.

Remove the now-dead center() helper and innerWidth computation, add
exact-layout tests for the welcome package, tighten the root command
test, and update the welcome descriptor.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@CGuiho
CGuiho merged commit 7ff7e8e into CGuiho:main Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants