Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "gok", Short: "top-level CLI entry point for all things gokrazy", Long: `The gok tool is your main entrypoint to gokrazy and allows you to: 1. Create new gokrazy instances (gok new), 2. Deploy gokrazy instances to storage devices like SD cards (gok overwrite), 3. Update gokrazy instances over the network (gok update), 4. (For development) Run individual programs on a running gokrazy instance (gok run). If you are unfamiliar with gokrazy, please follow: https://gokrazy.org/quickstart/ `, SilenceErrors: true, SilenceUsage: true, RunE: func(cmd *cobra.Command, args []string) error { versionVal, err := cmd.Flags().GetBool("version") if err != nil { return fmt.Errorf("BUG: version flag declared as non-bool") } if versionVal { fmt.Println(version.Read()) return nil } return pflag.ErrHelp }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.