robots/coverage/cmd/downloader/downloader.go
func MakeCommand() *cobra.Command {
	flags := &flags{}
	cmd := &cobra.Command{
		Use:   "download [bucket] [prowjob]",
		Short: "Finds and downloads the coverage profile file from the latest healthy build",
		Long: `Finds and downloads the coverage profile file from the latest healthy build 
stored in given gcs directory.`,
		Run: func(cmd *cobra.Command, args []string) {
			run(flags, cmd, args)
		},
	}
	cmd.Flags().StringVarP(&flags.outputFile, "output", "o", "-", "output file")
	cmd.Flags().StringVarP(&flags.artifactsDirName, "artifactsDir", "a", "artifacts", "artifact directory name in GCS")
	cmd.Flags().StringVarP(&flags.profileName, "profile", "p", "coverage-profile", "code coverage profile file name in GCS")
	return cmd
}
func MakeCommand() *cobra.Command {
	flags := &flags{}
	cmd := &cobra.Command{
		Use:   "download [bucket] [prowjob]",
		Short: "Finds and downloads the coverage profile file from the latest healthy build",
		Long: `Finds and downloads the coverage profile file from the latest healthy build 
stored in given gcs directory.`,
		Run: func(cmd *cobra.Command, args []string) {
			run(flags, cmd, args)
		},
	}
	cmd.Flags().StringVarP(&flags.outputFile, "output", "o", "-", "output file")
	cmd.Flags().StringVarP(&flags.artifactsDirName, "artifactsDir", "a", "artifacts", "artifact directory name in GCS")
	cmd.Flags().StringVarP(&flags.profileName, "profile", "p", "coverage-profile", "code coverage profile file name in GCS")
	return cmd
}
func MakeCommand ( ) * cobra . Command { flags := & flags { } cmd := & cobra . Command { Use : " " , Short : " " , Long : `Finds and downloads the coverage profile file from the latest healthy build 
stored in given gcs directory.` , Run : func ( cmd * cobra . Command , args [ ] string ) { run ( flags , cmd , args ) } , } cmd . Flags ( ) . StringVarP ( & flags . outputFile , " " , " " , " " , " " ) cmd . Flags ( ) . StringVarP ( & flags . artifactsDirName , " " , " " , " " , " " ) cmd . Flags ( ) . StringVarP ( & flags . profileName , " " , " " , " " , " " ) return cmd }
// MakeCommand returns a `download` command.
MakeCommand returns a download command .