github.com/yandex/pandora@v0.5.32/main.go (about)

     1  package main
     2  
     3  import (
     4  	"github.com/spf13/afero"
     5  	"github.com/yandex/pandora/cli"
     6  	grpc "github.com/yandex/pandora/components/grpc/import"
     7  	"github.com/yandex/pandora/components/guns"
     8  	phttp "github.com/yandex/pandora/components/phttp/import"
     9  	coreimport "github.com/yandex/pandora/core/import"
    10  )
    11  
    12  func main() {
    13  	// CLI don't know anything about components initially.
    14  	// All extpoints constructors and default configurations should be registered, before CLI run.
    15  	fs := afero.NewOsFs()
    16  	coreimport.Import(fs)
    17  	phttp.Import(fs)
    18  	grpc.Import(fs)
    19  	guns.Import(fs)
    20  
    21  	cli.Run()
    22  }