Skip to content

Support string pointers for path mapper#360

Merged
alecthomas merged 1 commit into
alecthomas:masterfrom
christian-stephen:cs/path-string-ptr
Mar 5, 2024
Merged

Support string pointers for path mapper#360
alecthomas merged 1 commit into
alecthomas:masterfrom
christian-stephen:cs/path-string-ptr

Conversation

@christian-stephen

Copy link
Copy Markdown
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
Copy Markdown
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