Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support string pointers for path mapper #360

Merged
merged 1 commit into from
Mar 5, 2024

Conversation

christian-stephen
Copy link
Contributor

I have a use case where I would like to differentiate between an unset path and an empty string path (which expands to the current directory).

This PR updates the pathMapper function to allow a path type to be applied to a *string to make this differentiation per the pointer behaviour described here: https://github.com/alecthomas/kong#pointers

@christian-stephen christian-stephen marked this pull request as ready for review April 22, 2023 14:02
@alecthomas alecthomas merged commit 4a9fe05 into alecthomas:master Mar 5, 2024
@alecthomas
Copy link
Owner

Apologies for the (much) belated merge.

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