-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathmain.go
More file actions
39 lines (35 loc) · 1.13 KB
/
main.go
File metadata and controls
39 lines (35 loc) · 1.13 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
package main
import (
"fmt"
"os"
"github.com/commonjava/indy-tests/cmd/buildtest"
"github.com/commonjava/indy-tests/cmd/dataset"
"github.com/commonjava/indy-tests/cmd/datest"
"github.com/commonjava/indy-tests/cmd/event"
"github.com/commonjava/indy-tests/cmd/integrationtest"
"github.com/commonjava/indy-tests/cmd/promotetest"
"github.com/commonjava/indy-tests/cmd/statictest"
"github.com/commonjava/indy-tests/cmd/migrate"
"github.com/spf13/cobra"
)
func main() {
rootCmd := &cobra.Command{
Use: "indy-test",
Short: "indy-test is a tool to do indy integration test against runnable indy server",
Run: func(cmd *cobra.Command, args []string) {
cmd.Help()
},
}
rootCmd.AddCommand(buildtest.NewBuildTestCmd())
rootCmd.AddCommand(promotetest.NewPromoteTestCmd())
rootCmd.AddCommand(datest.NewDATestCmd())
rootCmd.AddCommand(dataset.NewDatasetCmd())
rootCmd.AddCommand(integrationtest.NewIntegrationTestCmd())
rootCmd.AddCommand(event.NewEventTestCmd())
rootCmd.AddCommand(statictest.NewStaticTestCmd())
rootCmd.AddCommand(migrate.NewMigrateCmd())
if err := rootCmd.Execute(); err != nil {
fmt.Println(err)
os.Exit(1)
}
}