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/
19 lines
413 B
Go
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)
|
|
}
|
|
}
|