diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-24 00:46:47 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-24 00:46:47 +0300 |
| commit | a09ed05cd7410d4f52d5cd74103d0a0b9819e649 (patch) | |
| tree | 53223d2d88bfdc4833bc7b937934ad12cf8f18e7 | |
| parent | 226eeaa912df006f2a279b6bc2ccaf72f9a74217 (diff) | |
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.
| -rw-r--r-- | Magefile.go | 8 |
1 files 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 |
