Skip to content

Export normalise functions and add home directory override#19

Merged
shellicar merged 1 commit intomainfrom
feature/normalise-options
Mar 24, 2026
Merged

Export normalise functions and add home directory override#19
shellicar merged 1 commit intomainfrom
feature/normalise-options

Conversation

@shellicar
Copy link
Copy Markdown
Owner

Summary

  • normaliseInput, normaliseCommand, and expandPath exported from the package
  • Home directory can be overridden when normalising paths, enabling unit testing without OS mocking

Related Issues

Closes #18

Co-Authored-By: Claude noreply@anthropic.com

@shellicar shellicar added this to the 1.0 milestone Mar 24, 2026
@shellicar shellicar added the enhancement New feature or request label Mar 24, 2026
@shellicar shellicar self-assigned this Mar 24, 2026
@shellicar shellicar enabled auto-merge (squash) March 24, 2026 13:19
Copy link
Copy Markdown
Collaborator

@bananabot9000 bananabot9000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean extraction of normalise functions into public API. NormaliseOptions with home override is the right DI seam -- tests go from OS-dependent to deterministic with a one-line change. normaliseCommand promotion to its own file means CLI can normalise individual commands without wrapping in ExecInput. CHANGELOG entry for #17 corrected from 'moved a variable' to actual user-visible effect. preview.5 ready to ship.

@shellicar shellicar merged commit d86f039 into main Mar 24, 2026
3 checks passed
@shellicar shellicar deleted the feature/normalise-options branch March 24, 2026 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Export normalisation functions with optional homedir for testability

2 participants