func (c *GenerateConcoursePipelineCommand) Execute([]string) error {
	lo.G.Warning("This command has been deprecated use lastest cf-mgmt-config cli")
	const varsFileName = "vars.yml"
	const pipelineFileName = "pipeline.yml"
	const cfMgmtYml = "cf-mgmt.yml"
	const cfMgmtSh = "cf-mgmt.sh"
	var targetFile string
	fmt.Println("Generating pipeline....")
	if err := createFile(pipelineFileName, pipelineFileName); err != nil {
		lo.G.Error("Error creating pipeline.yml", err)
		return err
	}
	if err := createFile(varsFileName, varsFileName); err != nil {
		lo.G.Error("Error creating vars.yml", err)
		return err
	}
	if err := os.MkdirAll("ci/tasks", 0755); err == nil {
		targetFile = filepath.Join("ci", "tasks", cfMgmtYml)
		lo.G.Debug("Creating", targetFile)
		if err = createFile(cfMgmtYml, targetFile); err != nil {
			lo.G.Error("Error creating cf-mgmt.yml", err)
			return err
		}
		targetFile = filepath.Join("ci", "tasks", cfMgmtSh)
		lo.G.Debug("Creating", targetFile)
		if err = createFile(cfMgmtSh, targetFile); err != nil {
			lo.G.Error("Error creating cf-mgmt.sh", err)
			return err
		}
	} else {
		lo.G.Error("Error making directories", err)
		return err
	}
	fmt.Println("1) Update vars.yml with the appropriate values")
	fmt.Println("2) Using following command to set your pipeline in concourse after you have checked all files in to git")
	fmt.Println("fly -t lite set-pipeline -p cf-mgmt -c pipeline.yml --load-vars-from=vars.yml")
	return nil
}
func (c *GenerateConcoursePipelineCommand) Execute([]string) error {
	lo.G.Warning("This command has been deprecated use lastest cf-mgmt-config cli")
	const varsFileName = "vars.yml"
	const pipelineFileName = "pipeline.yml"
	const cfMgmtYml = "cf-mgmt.yml"
	const cfMgmtSh = "cf-mgmt.sh"
	var targetFile string
	fmt.Println("Generating pipeline....")
	if err := createFile(pipelineFileName, pipelineFileName); err != nil {
		lo.G.Error("Error creating pipeline.yml", err)
		return err
	}
	if err := createFile(varsFileName, varsFileName); err != nil {
		lo.G.Error("Error creating vars.yml", err)
		return err
	}
	if err := os.MkdirAll("ci/tasks", 0755); err == nil {
		targetFile = filepath.Join("ci", "tasks", cfMgmtYml)
		lo.G.Debug("Creating", targetFile)
		if err = createFile(cfMgmtYml, targetFile); err != nil {
			lo.G.Error("Error creating cf-mgmt.yml", err)
			return err
		}
		targetFile = filepath.Join("ci", "tasks", cfMgmtSh)
		lo.G.Debug("Creating", targetFile)
		if err = createFile(cfMgmtSh, targetFile); err != nil {
			lo.G.Error("Error creating cf-mgmt.sh", err)
			return err
		}
	} else {
		lo.G.Error("Error making directories", err)
		return err
	}
	fmt.Println("1) Update vars.yml with the appropriate values")
	fmt.Println("2) Using following command to set your pipeline in concourse after you have checked all files in to git")
	fmt.Println("fly -t lite set-pipeline -p cf-mgmt -c pipeline.yml --load-vars-from=vars.yml")
	return nil
}
func ( c * GenerateConcoursePipelineCommand ) Execute ( [ ] string ) error { lo . G . Warning ( " " ) const varsFileName = " " const pipelineFileName = " " const cfMgmtYml = " " const cfMgmtSh = " " var targetFile string fmt . Println ( " " ) if err := createFile ( pipelineFileName , pipelineFileName ) ; err != nil { lo . G . Error ( " " , err ) return err } if err := createFile ( varsFileName , varsFileName ) ; err != nil { lo . G . Error ( " " , err ) return err } if err := os . MkdirAll ( " " , 0755 ) ; err == nil { targetFile = filepath . Join ( " " , " " , cfMgmtYml ) lo . G . Debug ( " " , targetFile ) if err = createFile ( cfMgmtYml , targetFile ) ; err != nil { lo . G . Error ( " " , err ) return err } targetFile = filepath . Join ( " " , " " , cfMgmtSh ) lo . G . Debug ( " " , targetFile ) if err = createFile ( cfMgmtSh , targetFile ) ; err != nil { lo . G . Error ( " " , err ) return err } } else { lo . G . Error ( " " , err ) return err } fmt . Println ( " " ) fmt . Println ( " " ) fmt . Println ( " " ) return nil }
//Execute - generates concourse pipeline and tasks
Execute - generates concourse pipeline and tasks