-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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 brew analytics
command
#173
Conversation
Looks great to me. Mind updating https://github.com/Homebrew/brew/blob/master/share/doc/homebrew/Analytics.md to note to use it instead of the commands? |
@@ -0,0 +1,44 @@ | |||
#: * `analytics` [`state`]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be good to point to the analytics documentation in here and use the language from there (anonymous user behaviour analytics)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Heh, was talking about this with Mike the other day. You beat me to actually getting the work done 😃. |
#: * `analytics` [`state`]: | ||
#: Display analytics state. | ||
#: | ||
#: * `analytics` `on`|`off`: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be
#: * `analytics` (`on`|`off`):
to be consistent with other documentation we have where there's a list of mandatory alternatives.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
Part of me wonders if |
Good work! It would be great to also update the shell completion of your shell to work with this new command.
We could consider adding it to the list of commands exempt from tracking (we're already excluding |
Your suggestion sounds good to me, FWIW. Edit - Reworded for clarity. |
I think we should do this in another PR. Because there are many other commands (e.g, Addressed other comments. |
Currently |
Good point, fixed this.
What do you mean? Isn't it already in there? https://github.com/Homebrew/brew/pull/173/files#diff-de62681d221dc414a999cf7eec2f0f36 |
@xu-cheng Sorry, I missed that before, my mistake. |
NP, just want to check if I missing anything. Ready to ship? |
case "$HOMEBREW_COMMAND" in | ||
--prefix|analytics|command|commands) | ||
return ;; | ||
esac |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor nit, but so far we seem to prefer either
case "$HOMEBREW_COMMAND" in
--prefix|analytics|command|commands)
return
;;
esac
or
case "$HOMEBREW_COMMAND" in
--prefix|analytics|command|commands) return;;
esac
One final (and very minor) remark, but otherwise 👍. |
No description provided.