Skip to content

Rewrite maifetch in Delphi-compatible Object Pascal#19

Closed
alejandrorivas-pixel wants to merge 1 commit into
HutchyBen:mainfrom
alejandrorivas-pixel:delphi-rewrite-bounty-1
Closed

Rewrite maifetch in Delphi-compatible Object Pascal#19
alejandrorivas-pixel wants to merge 1 commit into
HutchyBen:mainfrom
alejandrorivas-pixel:delphi-rewrite-bounty-1

Conversation

@alejandrorivas-pixel

Copy link
Copy Markdown

Summary

Rewrites maifetch in Delphi-compatible Object Pascal for the latest confirmed bounty direction in #1.

What changed

  • Replaced the Go module with a single Delphi-mode Pascal CLI in src/maifetch.pas.
  • Preserved the original config precedence: config file, environment, then command line overrides.
  • Kept the MaiTea options: --access-token/-a/-t, --logo-size/-l, --score-count/-s, and --config-file/-c.
  • Uses the MaiTea profiles and plays API endpoints with bearer auth.
  • Renders profile details, recent scores, ANSI difficulty/rank styling, and a lightweight image-to-ASCII logo path.
  • Adds fixture-driven validation plus a GitHub Actions workflow for Free Pascal.

Validation

  • git diff --check
  • ./test/run-fixture.sh
  • The fixture test compiles with fpc -Mdelphi -FEbuild -FUbuild src/maifetch.pas and verifies profile/recent-score output from local JSON fixtures.

Related to #1 and the maintainer's 2026-06-14 confirmation that Delphi is now the bounty target.

payment details can be provided privately after maintainer acceptance.

@alejandrorivas-pixel

Copy link
Copy Markdown
Author

Closing this Delphi submission because it has been superseded by the maintainer-requested Crystal rewrite in #20.

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