Closed mattbrailsford closed 4 years ago
@jmayntzhusen any chance this could get merged in? I'd really like to start using UmbPack for my package generation but don't want my package naming strategy to change.
I'll review this today 🙂
Ok, so I've now made GetPackageFileName
do just what it's name says and it generates just the file name. I've then broken out the generation of the package output path to a line of code after the filename is generated. This ensures that it now works with both generated file names and explicitly supplied filenames.
In addition, I've also added an EnsureEndsWith
extension method (taken from Umbraco core) to ensure that any explicitly supplied filename ends with ".zip".
I'm not taking into account the version as you can't be sure how this would be supplied and so I thinks it's enough to say "if you supply a name, you supply it all".
Awesome! Thank @jmayntzhusen for reviewing 🙏
Fixed #36 by introducing a
-n
flag to allow you to override the package file name generated by the pack command