INNER CODE UNIT · Go
newEditorCommand
gameknife/gkNextEngine · tools/gnb/cmd/gnb/main.go:799
func newEditorCommand(ctx appContext) *cobra.Command {
return &cobra.Command{
Use: "editor",
Short: "Run gkNextEditor",
RunE: func(cmd *cobra.Command, args []string) error {
return runner.Run(ctx.repoRoot, runner.Options{Target: "gkNextEditor", Preset: ctx.preset, Args: args})
},
}
}
func newAndroidCommand(ctx appContext) *cobra.Command {
root := &cobra.Command{
Use: "android",
Short: "Build and launch the Android app",
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
return cmd.Help()
},