File tree 6 files changed +8
-19
lines changed
6 files changed +8
-19
lines changed Original file line number Diff line number Diff line change 16
16
17
17
- ` srcd ` commands do not have a ` -v/--verbose ` flag anymore, it has been replaced with the ` --log-level=debug ` option ([ #410 ] ( https://github.com/src-d/engine/issues/410 ) ).
18
18
- The ` srcd/cli-daemon ` docker image executable now requires to use the ` serve ` sub command. This does not affect end users ([ #410 ] ( https://github.com/src-d/engine/issues/410 ) ).
19
+ - Command ` srcd parse drivers list ` has been renamed to ` srcd parse drivers ` ([ #320 ] ( https://github.com/src-d/engine/issues/320 ) ).
19
20
20
21
### New Features
21
22
Original file line number Diff line number Diff line change @@ -255,7 +255,7 @@ srcd parse uast --lang=LANGUAGE /path/to/file
255
255
To see the installed language drivers:
256
256
257
257
``` bash
258
- srcd parse drivers list
258
+ srcd parse drivers
259
259
```
260
260
261
261
### 5. Start Executing Queries
Original file line number Diff line number Diff line change @@ -9,12 +9,12 @@ import (
9
9
"github.com/src-d/engine/cmd/srcd/daemon"
10
10
)
11
11
12
- // parseDriversListCmd represents the parse drivers list command
13
- type parseDriversListCmd struct {
14
- Command `name:"list " short-description:"List installed language drivers" long-description:"List installed language drivers"`
12
+ // parseDriverCmd represents the parse drivers command
13
+ type parseDriverCmd struct {
14
+ Command `name:"drivers " short-description:"List installed language drivers" long-description:"List installed language drivers"`
15
15
}
16
16
17
- func (cmd * parseDriversListCmd ) Execute (args []string ) error {
17
+ func (cmd * parseDriverCmd ) Execute (args []string ) error {
18
18
c , err := daemon .Client ()
19
19
if err != nil {
20
20
return humanizef (err , "could not get daemon client" )
Original file line number Diff line number Diff line change @@ -173,18 +173,11 @@ func (cmd *parseLangCmd) Execute(args []string) error {
173
173
return nil
174
174
}
175
175
176
- // parseDriversCmd represents the parse drivers command
177
- type parseDriversCmd struct {
178
- cli.PlainCommand `name:"drivers" short-description:"Manage language drivers" long-description:"Manage language drivers"`
179
- }
180
-
181
176
func init () {
182
177
c := rootCmd .AddCommand (& parseCmd {})
183
178
c .AddCommand (& parseUASTCmd {})
184
179
c .AddCommand (& parseLangCmd {})
185
-
186
- driversCmd := c .AddCommand (& parseDriversCmd {})
187
- driversCmd .AddCommand (& parseDriversListCmd {})
180
+ c .AddCommand (& parseDriverCmd {})
188
181
}
189
182
190
183
func parseModeArg (mode string ) (api.ParseRequest_UastMode , error ) {
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ var testCases = []testCase{
87
87
func (s * ParseTestSuite ) TestDriversList () {
88
88
require := s .Require ()
89
89
90
- r := s .RunCommand ("parse" , "drivers" , "list" )
90
+ r := s .RunCommand ("parse" , "drivers" )
91
91
require .NoError (r .Error , r .Combined ())
92
92
93
93
/* Example output:
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ they've been implemented.
11
11
- [ srcd parse uast] ( #srcd-parse-uast )
12
12
- [ srcd parse lang] ( #srcd-parse-lang )
13
13
- [ srcd parse drivers] ( #srcd-parse-drivers )
14
- - [ srcd parse drivers list] ( #srcd-parse-drivers-list )
15
14
- [ srcd sql] ( #srcd-sql )
16
15
- [ srcd web] ( #srcd-web )
17
16
- [ srcd web parse] ( #srcd-web-parse )
@@ -111,10 +110,6 @@ Identifies the language of the given file.
111
110
*flags*:
112
111
113
112
# ## srcd parse drivers
114
- All of the subcomands of `srcd parse drivers` provide management for
115
- the language drivers installed on `bblfsh`.
116
-
117
- # ### srcd parse drivers list
118
113
Lists all of the drivers already installed on `bblfsh` together with the
119
114
version installed.
120
115
You can’t perform that action at this time.
0 commit comments