INNER CODE UNIT · Go

newSetupCommand

gameknife/gkNextEngine · tools/gnb/cmd/gnb/main.go:294

func newSetupCommand(ctx appContext) *cobra.Command {
	skipPaks := false
	vcpkgOnly := false
	refresh := false
	cmd := &cobra.Command{
		Use:   "setup",
		Short: "Prepare vcpkg, external SDKs, and optional paks",
		RunE: func(cmd *cobra.Command, args []string) error {
			if err := platform.EnsureLinuxPreparePackages(); err != nil {
				return err
			}
			if err := vcpkg.Ensure(ctx.repoRoot, ctx.cfg, refresh); err != nil {
				return err
			}
			if vcpkgOnly {
				return nil
			}
			if err := platform.EnsureLinuxDesktopPackages(); err != nil {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…