Example #1
0
func getConfig() *model.RunConfig {
	configFile := &model.RunConfig{}
	if *configJSON != "" {
		bytes, err := ioutil.ReadFile(*configJSON)
		errors.Validate(err, "Can't read model file")
		*configFile = model.Transform(bytes)
	}
	return configFile
}
func create(bytes []byte) *devicefarm.ScheduleRunInput {
	cf := model.Transform(bytes)
	p := &model.RunParameters{
		Client:  client,
		Config:  &cf,
		Project: "232323",
	}
	deviceFarmConfig := createScheduleRunInput(p)
	fmt.Println(deviceFarmConfig.String())
	return deviceFarmConfig
}