From a09ed05cd7410d4f52d5cd74103d0a0b9819e649 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 24 May 2026 00:46:47 +0300 Subject: fix(Magefile): update stale comments referencing old 'perc' binary name Four comments still referred to the old project name 'perc'. Updated Build, Run, Install, and Uninstall doc comments to correctly reference 'gt'. Also clarified Install/Uninstall to mention GOBIN precedence over GOPATH/bin, matching the actual implementation. --- Magefile.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Magefile.go b/Magefile.go index 7547704..7048165 100644 --- a/Magefile.go +++ b/Magefile.go @@ -19,13 +19,13 @@ const binaryName = "gt" // Default is the default target when no target is specified. var Default = Build -// Build builds the perc binary. +// Build builds the gt binary. func Build() error { fmt.Println("Building gt...") return sh.RunV("go", "build", "-o", binaryName, "./cmd/gt") } -// Run runs the perc binary. +// Run runs the gt binary. func Run() error { return sh.RunV("go", "run", "./cmd/gt") } @@ -47,7 +47,7 @@ func RPN() error { return TestRPN() } -// Install installs the perc binary to GOPATH/bin. +// Install installs the gt binary to GOBIN (or GOPATH/bin if GOBIN is not set). func Install() error { fmt.Println("Installing gt...") return sh.RunV("go", "install", "./cmd/gt") @@ -71,7 +71,7 @@ func Repl() error { return sh.RunV("go", "run", "./cmd/gt", "--repl") } -// Uninstall removes the perc binary from GOPATH/bin. +// Uninstall removes the gt binary from GOBIN (or GOPATH/bin if GOBIN is not set). func Uninstall() error { fmt.Println("Uninstalling gt...") // Use the same logic as go install to determine the binary location -- cgit v1.2.3