]> Cypherpunks repositories - gostls13.git/commit
cmd/go: add tool names to go tool subcommand counters
authorMichael Matloob <matloob@golang.org>
Thu, 14 Mar 2024 21:58:45 +0000 (17:58 -0400)
committerMichael Matloob <matloob@golang.org>
Fri, 5 Apr 2024 18:02:11 +0000 (18:02 +0000)
commit62791eb48912ef9dcaa26bee44c98891c8f60ddc
treea03bfef54f91dedf7d4e0f062fb0b052f76cb517
parent74cce866f865c3188a34309e4ebc7a5c9ed0683d
cmd/go: add tool names to go tool subcommand counters

When go tool <toolname> is run, increment the
go/subcommand:tool-<toolname> counter instead of just
go/subcommand:tool. go/subcommand:tool will be incremented
if go tool is run without a tool argument to list the
available tools.

Change-Id: I22b888fada1441389315a79f417c72b3f74070f8
Reviewed-on: https://go-review.googlesource.com/c/go/+/571802
Reviewed-by: Alan Donovan <adonovan@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Sam Thanawalla <samthanawalla@google.com>
src/cmd/go/counters_test.go
src/cmd/go/internal/tool/tool.go
src/cmd/go/main.go
src/cmd/go/testdata/counters.txt