Skip to content

Commit dec024a

Browse files
committed
cmd/buzzkill: rename to rmplaysnippet
Our latest practice is to avoid creative names, but prefer descriptive and boring ones. This is helpful for: • discovering the command when looking at the list of commands available • finding the command again (no need to remember the fun name) • not polluting autocompletion in terminal (since GOPATH/bin is often in one's PATH) New usage: $ rmplaysnippet usage: rmplaysnippet {https://play.golang.org/p/<id> | <id>} Change-Id: Id3d9513a7229624607408facb62f76e206a93002 Reviewed-on: https://go-review.googlesource.com/c/148885 Reviewed-by: Brad Fitzpatrick <[email protected]> Reviewed-by: Russ Cox <[email protected]>
1 parent ae660ea commit dec024a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/buzzkill/main.go renamed to cmd/rmplaysnippet/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
// The buzzkill binary removes a code snippet from play.golang.org given its URL
5+
// The rmplaysnippet binary removes a code snippet from play.golang.org given its URL
66
// or ID.
77
package main
88

@@ -50,7 +50,7 @@ func main() {
5050
k := datastore.NameKey("Snippet", snippetID, nil)
5151
if err := client.Delete(ctx, k); err != nil {
5252
fmt.Fprintf(os.Stderr, "Unable to delete Snippet with ID %q: %v\n", snippetID, err)
53-
fmt.Fprintf(os.Stderr, "buzzkill requires Application Default Credentials.\n")
53+
fmt.Fprintf(os.Stderr, "rmplaysnippet requires Application Default Credentials.\n")
5454
fmt.Fprintf(os.Stderr, "Did you run `gcloud auth application-default login`?\n")
5555
os.Exit(1)
5656
}

0 commit comments

Comments
 (0)