Determine when uninstall stanza is run explicitly by user? #3401
-
I'm the maintainer of the ContextIf a user runs I've tried to replicate this behavior in our cask as part of the QuestionIs there any way to distinguish when uninstall stanza is run explicitly by user as in If not, is this functionality you'd be open to supporting? (I could imagine this information exposed as an environment variable that is set while the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
No, that's what zap stanzas are for. |
Beta Was this translation helpful? Give feedback.
-
Homebrew Cask was designed to allow you to manage your installations purely from a CLI, so taking users away from the CLI when they don't expect probably isn't welcome, and might cause errors in certain situations (e.g. when logged in via I'm not opposed to adding a message in the |
Beta Was this translation helpful? Give feedback.
Homebrew Cask was designed to allow you to manage your installations purely from a CLI, so taking users away from the CLI when they don't expect probably isn't welcome, and might cause errors in certain situations (e.g. when logged in via
ssh
with no attached GUI). So I don't think supporting this is something we can do.I'm not opposed to adding a message in the
caveats
, though. But this does have the shortcoming of not being displayed afterbrew uninstall
.