INNER CODE UNIT · Go
newCleanCommand
gameknife/gkNextEngine · tools/gnb/cmd/gnb/main.go:1156
func newCleanCommand(ctx appContext) *cobra.Command {
return &cobra.Command{
Use: "clean [target]",
Short: "Clean build output",
Args: cobra.MaximumNArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
target := ""
if len(args) == 1 {
target = args[0]
}
return cmakerun.Clean(ctx.repoRoot, ctx.preset, target)
},
}
}
func newInstallCommand(ctx appContext) *cobra.Command {
return &cobra.Command{
Use: "install",