Skip to content

Conversation

@croaky
Copy link
Owner

@croaky croaky commented Dec 31, 2025

Single-file structure is idiomatic for small CLI tools that aren't
intended as libraries. At ~320 lines, the code is easily scannable
in one file without jumping between files.

This also improves consistency with mdembed, another pinned repo
with similar single-purpose CLI tool characteristics.

Ordering: imports → const/types → main() → functions by receiver.

Also consolidate test files. This mirrors the source file
consolidation for consistency. At ~270 lines, the tests are
easily scannable in one file.

TestMain stays at the top as test infrastructure, followed by unit
tests, then the integration test.

Co-authored-by: Warp agent@warp.dev

croaky and others added 2 commits December 31, 2025 09:23
Single-file structure is idiomatic for small CLI tools that aren't
intended as libraries. At ~320 lines, the code is easily scannable
in one file without jumping between files.

This also improves consistency with mdembed, another pinned repo
with similar single-purpose CLI tool characteristics.

Ordering: imports → const/types → main() → functions by receiver.

Co-authored-by: Warp <agent@warp.dev>
Mirrors the source file consolidation for consistency. At ~270 lines,
the tests are easily scannable in one file.

TestMain stays at the top as test infrastructure, followed by unit
tests, then the integration test.

Co-authored-by: Warp <agent@warp.dev>
@croaky croaky merged commit 8b5c8d9 into main Dec 31, 2025
1 check passed
@croaky croaky deleted the croaky/code-review branch December 31, 2025 14:28
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.

1 participant