-
Notifications
You must be signed in to change notification settings - Fork 116
Expand file tree
/
Copy pathmain.go
More file actions
executable file
·45 lines (38 loc) · 2.1 KB
/
Copy pathmain.go
File metadata and controls
executable file
·45 lines (38 loc) · 2.1 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package main
import (
"github.com/golang/glog"
localapi "github.com/ambient-code/platform/components/ambient-api-server/pkg/api"
localcmd "github.com/ambient-code/platform/components/ambient-api-server/pkg/cmd"
pkgcmd "github.com/openshift-online/rh-trex-ai/pkg/cmd"
_ "github.com/ambient-code/platform/components/ambient-api-server/cmd/ambient-api-server/environments"
_ "github.com/ambient-code/platform/components/ambient-api-server/pkg/middleware"
// Core plugins from upstream
_ "github.com/openshift-online/rh-trex-ai/plugins/events"
_ "github.com/openshift-online/rh-trex-ai/plugins/generic"
// Backend-compatible plugins only
_ "github.com/ambient-code/platform/components/ambient-api-server/plugins/agents"
_ "github.com/ambient-code/platform/components/ambient-api-server/plugins/credentials"
_ "github.com/ambient-code/platform/components/ambient-api-server/plugins/inbox"
_ "github.com/ambient-code/platform/components/ambient-api-server/plugins/projectSettings"
_ "github.com/ambient-code/platform/components/ambient-api-server/plugins/projects"
_ "github.com/ambient-code/platform/components/ambient-api-server/plugins/proxy"
_ "github.com/ambient-code/platform/components/ambient-api-server/plugins/rbac"
_ "github.com/ambient-code/platform/components/ambient-api-server/plugins/roleBindings"
_ "github.com/ambient-code/platform/components/ambient-api-server/plugins/roles"
_ "github.com/ambient-code/platform/components/ambient-api-server/plugins/scheduledSessions"
_ "github.com/ambient-code/platform/components/ambient-api-server/plugins/sessions"
_ "github.com/ambient-code/platform/components/ambient-api-server/plugins/users"
_ "github.com/ambient-code/platform/components/ambient-api-server/plugins/version"
)
func main() {
rootCmd := pkgcmd.NewRootCommand("ambient-api-server", "Ambient API Server")
rootCmd.AddCommand(
pkgcmd.NewMigrateCommand("ambient-api-server"),
pkgcmd.NewServeCommand(localapi.GetOpenAPISpec),
localcmd.NewEncryptCredentialsCommand(),
localcmd.NewSeedAdminCommand(),
)
if err := rootCmd.Execute(); err != nil {
glog.Fatalf("error running command: %v", err)
}
}