Files
tools/cmd/gok/gok.go
Michael Stapelberg c61213349c provide a programmatic entry point to the gok CLI
This interfaces with spf13/cobra without typing ourselves to its types, and
exerting control (for better of for worse) about what aspects one can control.

With this, we can move the code in cmd to internal/
2023-01-15 15:55:51 +01:00

19 lines
413 B
Go

// Binary gok is a new top-level CLI entry point for all things gokrazy:
// building and deploying new gokrazy images, managing your ~/gokrazy/
// directory, building and running Go programs from your local Go workspace,
// etc.
package main
import (
"context"
"log"
"github.com/gokrazy/tools/gok"
)
func main() {
if err := (gok.Context{}).Execute(context.Background()); err != nil {
log.Fatal(err)
}
}