Skip to content

Expand home paths in configuration and CLI arguments - #99

Merged
Gubarz merged 1 commit into
cheatmd-dev:mainfrom
echo8134:fix/home-paths
Sep 30, 2026
Merged

Gubarz merged 1 commit into
cheatmd-dev:mainfrom
echo8134:fix/home-paths

Conversation

@echo8134

Copy link
Copy Markdown
Contributor

Summary

Configured and explicitly supplied tilde paths were handled inconsistently. Expand a leading home marker at configuration and CLI path boundaries. Preserve the remainder of comma-separated configuration and literal path spelling.

Related issues

No linked issue.

Verification

Tests cover configuration paths and the root, dump and compose commands. Built CLI checks use paths that resolve into temporary directories.

Local checks passed on Go 1.27.1. The CI workflow uses Go 1.26.3.

Checklist

  • go build ./... and go test ./... pass
  • gofmt -l . and go vet ./... are clean
  • Added regression tests for the changed behavior
  • cheatmd --lint examples/ passes
  • Docs/wiki changes are not needed for this fix

@Gubarz
Gubarz marked this pull request as ready for review September 30, 2026 21:01
@Gubarz
Gubarz merged commit 9f41c1c into cheatmd-dev:main Sep 30, 2026
1 check passed
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