Skip to content

Commit

Permalink
task: adding some commments
Browse files Browse the repository at this point in the history
  • Loading branch information
paganotoni committed Feb 23, 2025
1 parent 156dc40 commit 583ef65
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions new/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,18 @@ import (
"os/exec"
)

// new tool creates a new leapkit module using the gonew tool
// and the go.leapkit.dev/template template. It receives the name of
// the newly created module as an argument.
func main() {
args := os.Args
if len(args) < 2 {
fmt.Println("Usage: new [name]")
return
}

// new tool invokes gonew under the hood to create a
// new module using the go.leapkit.dev/template template.
cmd := exec.Command(
"go", "run", "rsc.io/tmp/gonew@latest",
"go.leapkit.dev/template@latest",
Expand Down

0 comments on commit 583ef65

Please sign in to comment.