forked from yandex/pandora
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.go
28 lines (23 loc) · 803 Bytes
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright (c) 2017 Yandex LLC. All rights reserved.
// Use of this source code is governed by a MPL 2.0
// license that can be found in the LICENSE file.
// Author: Vladimir Skipor <skipor@yandex-team.ru>
package main
import (
"github.com/spf13/afero"
"github.com/yandex/pandora/cli"
example "github.com/yandex/pandora/components/example/import"
grpc "github.com/yandex/pandora/components/grpc/import"
phttp "github.com/yandex/pandora/components/phttp/import"
coreimport "github.com/yandex/pandora/core/import"
)
func main() {
// CLI don't know anything about components initially.
// All extpoints constructors and default configurations should be registered, before CLI run.
fs := afero.NewOsFs()
coreimport.Import(fs)
phttp.Import(fs)
example.Import()
grpc.Import()
cli.Run()
}