You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/gitbase/command/server.go
+89-22Lines changed: 89 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,7 @@ import (
5
5
"os"
6
6
"path/filepath"
7
7
"strconv"
8
+
"strings"
8
9
9
10
"github.com/src-d/gitbase"
10
11
"github.com/src-d/gitbase/internal/function"
@@ -14,6 +15,7 @@ import (
14
15
gopilosa "github.com/pilosa/go-pilosa"
15
16
"github.com/sirupsen/logrus"
16
17
"github.com/uber/jaeger-client-go/config"
18
+
git "gopkg.in/src-d/go-git.v4"
17
19
sqle "gopkg.in/src-d/go-mysql-server.v0"
18
20
"gopkg.in/src-d/go-mysql-server.v0/server"
19
21
"gopkg.in/src-d/go-mysql-server.v0/sql"
@@ -34,8 +36,10 @@ const (
34
36
// Server represents the `server` command of gitbase cli tool.
35
37
typeServerstruct {
36
38
Verbosebool`short:"v" description:"Activates the verbose mode"`
37
-
Git []string`short:"g" long:"git" description:"Path where the git repositories are located, multiple directories can be defined. Accepts globs."`
38
-
Siva []string`long:"siva" description:"Path where the siva repositories are located, multiple directories can be defined. Accepts globs."`
39
+
Directories []string`short:"d" long:"directories" description:"Path where the git repositories are located (standard and siva), multiple directories can be defined. Accepts globs."`
40
+
Depthint`long:"depth" default:"1000" description:"load repositories looking at less than <depth> nested subdirectories."`
41
+
DisableGitbool`long:"no-git" description:"disable the load of git standard repositories."`
42
+
DisableSivabool`long:"no-siva" description:"disable the load of siva files."`
39
43
Hoststring`long:"host" default:"localhost" description:"Host where the server is going to listen"`
40
44
Portint`short:"p" long:"port" default:"3306" description:"Port where the server is going to listen"`
41
45
Userstring`short:"u" long:"user" default:"root" description:"User name used for connection"`
0 commit comments