Add option to remove only binary or whole directory #4
Labels
enhancement
New feature or request
status - PR Welcome
This issue is well-defined and community PRs are welcome
Currently,
binary-install
assumes that uninstalling should remove the entire directory from the user's machine, however some libraries may have application-specific code in that directory. If that is the case, they may want to give users the choice of whether or not they want to remove application-specific code, or just the binary.binary-install
should remove the entire directory by default, but should allow library consumers to toggle the feature where the user is prompted to either remove the entire directory or just the binary.current code in
uninstall
that should remain the defaultif the user passes
option.uninstallPrompt = true
if y -> use existing default code
if n ->
fs.unlink(this._getBinaryPath())
The text was updated successfully, but these errors were encountered: