You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: public/projects/gobake/details.txt
+20-12Lines changed: 20 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ go install github.com/fezcode/gobake/cmd/gobake@latest
14
14
gobake init
15
15
```
16
16
17
-
This creates a `recipe.piml` and a `Recipe.go`.
17
+
The `init` command is smart: it handles `go mod init` (if needed), scaffolds your `recipe.piml` and `Recipe.go`, and runs `go mod tidy` to automatically pull in the `github.com/fezcode/gobake` library as a dependency.
18
18
19
19
2. **Run a task:**
20
20
@@ -26,23 +26,31 @@ go install github.com/fezcode/gobake/cmd/gobake@latest
26
26
27
27
### Commands
28
28
29
-
* `gobake init`: Scaffolds a new `Recipe.go` and `recipe.piml`.
29
+
* `gobake init`: Scaffolds a new `Recipe.go` and `recipe.piml`. Handles `go.mod` and dependencies.
30
30
* `gobake version`: Displays the current version of gobake.
31
31
* `gobake help`: Displays the list of commands and available tasks.
32
32
* `gobake bump [patch|minor|major]`: Increments the version in `recipe.piml`.
33
33
34
34
### The `Recipe.go` File
35
35
36
36
```go
37
-
package main
38
-
import "github.com/fezcode/gobake"
39
-
40
-
func main() {
41
-
bake := gobake.NewEngine()
42
-
bake.LoadRecipeInfo("recipe.piml")
43
-
bake.Task("build", "Builds the binary", func(ctx *gobake.Context) error {
A Go-native build orchestrator, type-safe and dependency-free.
3
-
(version) 0.2.2
3
+
(version) 0.3.0
4
4
5
5
**gobake** is a Go-native build orchestrator. It replaces Makefiles and shell scripts with a single, type-safe `Recipe.go` file. Inspired by `nob.h`, it allows you to write your build logic in Go, which is then compiled and executed on the fly.
0 commit comments