code: func cmd(b *Builder, args []string, attributes map[string]bool, flagArgs []string, original string) error {
  	cmdSlice := handleJSONArgs(args, attributes)
  
  	if !attributes["json"] {
  		if runtime.GOOS != "windows" {
  			cmdSlice = append([]string{"/bin/sh", "-c"}, cmdSlice...)
  		} else {
  			cmdSlice = append([]string{"cmd", "/S", "/C"}, cmdSlice...)
  		}
  	}
  
  	b.RunConfig.Cmd = strslice.StrSlice(cmdSlice)
  	if len(args) != 0 {
  		b.CmdSet = true
  	}
  	return nil
  }
docs: // CMD foo
  //
  // Set the default command to run in the container (which may be empty).
  // Argument handling is the same as RUN.
  //