Skip to content

feat(add verbose flag)#3

Merged
MedUnes merged 1 commit into
masterfrom
feat/add-verbose-flag
May 27, 2026
Merged

feat(add verbose flag)#3
MedUnes merged 1 commit into
masterfrom
feat/add-verbose-flag

Conversation

@MedUnes

@MedUnes MedUnes commented May 27, 2026

Copy link
Copy Markdown
Owner

Add -verbose flag, fix trailing-slash bug, refactor for testability

Closes #1

Changes

Bug fix: Strip trailing slashes from -url input via strings.TrimRight.

Feature: Add -verbose flag that logs request method/URL, response status, and a body preview (first 512 bytes) for every HTTP call.

Tests: Add main_test.go with 12 test cases for now

CI: Add .github/workflows/test.yml running make test on push/PR to master.

@MedUnes MedUnes self-assigned this May 27, 2026
@MedUnes MedUnes added bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request labels May 27, 2026
@MedUnes MedUnes merged commit b1f1b37 into master May 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show returned HTTP response on parsing failures

1 participant