Skip to content
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

provide an environment variable to disable GA #436

Merged
merged 5 commits into from Aug 4, 2020
Merged

provide an environment variable to disable GA #436

merged 5 commits into from Aug 4, 2020

Conversation

weakish
Copy link
Contributor

@weakish weakish commented Apr 1, 2020

No description provided.

@weakish weakish requested a review from jysperm April 1, 2020 08:08
@weakish weakish marked this pull request as ready for review June 23, 2020 06:49
lean/main.go Outdated Show resolved Hide resolved
@weakish weakish requested a review from jysperm June 24, 2020 05:00
@@ -327,13 +327,11 @@ func Run(args []string) {

app.Before = func(c *cli.Context) error {
disableGA, ok := os.LookupEnv("NO_ANALYTICS")
var args []string
if !ok || disableGA == "false" {
args = []string{"--_collect-stats"}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里不用 args := 的话会不会影响外层的 args

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

会的,加上了。

@jysperm jysperm merged commit 1af4f2e into master Aug 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants