github.com/pf-qiu/concourse/v6@v6.7.3-0.20201207032516-1f455d73275f/atc/db/migration/cli/main.go (about)

     1  package main
     2  
     3  import (
     4  	"os"
     5  
     6  	command "github.com/pf-qiu/concourse/v6/atc/db/migration/cli/command"
     7  	flags "github.com/jessevdk/go-flags"
     8  )
     9  
    10  func main() {
    11  	cmd := &command.MigrationCommand{}
    12  
    13  	parser := flags.NewParser(cmd, flags.Default)
    14  	parser.Command.Find("generate")
    15  	_, err := parser.Parse()
    16  	if err != nil {
    17  		os.Stderr.WriteString(err.Error())
    18  		os.Exit(1)
    19  	}
    20  }