-
-
Notifications
You must be signed in to change notification settings - Fork 740
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
Add MakeRelative alias to DirectoryPath and FilePath #2838
Comments
Might be a good edition cake/src/Cake.Common/IO/Zipper.cs Lines 225 to 233 in 80d787c
A MakeRelative alias should take rootPath as the last parameter and be optional, that way it could default to working directory but you could also specify a path. |
@augustoproiete @devlead Better to use the The method above should probably be rewritten to use that as well... |
Fixed by #2923 |
🎉 This issue has been resolved in version v1.0.0 🎉 The release is available on: Your GitReleaseManager bot 📦🚀 |
What You Are Seeing?
MakeAbsolute
is a useful alias to transform a relative path into an absolute path based on the currentWorkingDirectory
, but there's not an equivalent alias for doing the opposite, that is, transform an absolute path into a relative path.What is Expected?
I'd like Cake to provide a
MakeRelative
alias that transforms an absolute path into a relative path, which is useful when printing messages to the console log, for ease of reading.e.g.
What version of Cake are you using?
0.38.4
ps: I'm happy to send a PR that adds this feature.
The text was updated successfully, but these errors were encountered: