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
+9-10Lines changed: 9 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -35,11 +35,13 @@ const (
35
35
36
36
// Server represents the `server` command of gitbase cli tool.
37
37
typeServerstruct {
38
-
Verbosebool`short:"v" description:"Activates the verbose mode"`
38
+
engine*sqle.Engine
39
+
pool*gitbase.RepositoryPool
40
+
namestring
41
+
42
+
Versionstring// Version of the application.
39
43
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
44
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."`
43
45
Hoststring`long:"host" default:"localhost" description:"Host where the server is going to listen"`
44
46
Portint`short:"p" long:"port" default:"3306" description:"Port where the server is going to listen"`
45
47
Userstring`short:"u" long:"user" default:"root" description:"User name used for connection"`
@@ -49,14 +51,11 @@ type Server struct {
49
51
DisableSquashbool`long:"no-squash" description:"Disables the table squashing."`
ReadOnlybool`short:"r" long:"readonly" description:"Only allow read queries. This disables creating and deleting indexes as well." env:"GITBASE_READONLY"`
52
-
// SkipGitErrors disables failing when Git errors are found.
53
-
SkipGitErrorsbool
54
-
// Version of the application.
55
-
Versionstring
56
54
57
-
engine*sqle.Engine
58
-
pool*gitbase.RepositoryPool
59
-
namestring
55
+
SkipGitErrorsbool// SkipGitErrors disables failing when Git errors are found.
56
+
DisableGitbool`long:"no-git" description:"disable the load of git standard repositories."`
57
+
DisableSivabool`long:"no-siva" description:"disable the load of siva files."`
58
+
Verbosebool`short:"v" description:"Activates the verbose mode"`
0 commit comments