INNER CODE UNIT · Go
newDepsCommand
gameknife/gkNextEngine · tools/gnb/cmd/gnb/main.go:329
func newDepsCommand(ctx appContext) *cobra.Command {
root := &cobra.Command{
Use: "deps",
Short: "Fetch project-managed external toolchains",
}
fetch := &cobra.Command{
Use: "fetch [all|vulkan|streamline|fidelityfx]",
Short: "Fetch one or more external dependencies",
RunE: func(cmd *cobra.Command, args []string) error {
return fetcher.EnsureNamedExternal(ctx.repoRoot, ctx.cfg, args)
},
}
root.AddCommand(fetch)
return root
}