File tree Expand file tree Collapse file tree 2 files changed +4
-23
lines changed
internal/golangorgx/gopls/cmd Expand file tree Collapse file tree 2 files changed +4
-23
lines changed Original file line number Diff line number Diff line change @@ -266,8 +266,7 @@ func (app *Application) internalCommands() []tool.Application {
266
266
func (app * Application ) featureCommands () []tool.Application {
267
267
return []tool.Application {
268
268
& format {app : app },
269
- newRemote (app , "" ),
270
- newRemote (app , "inspect" ),
269
+ newRemote (app ),
271
270
}
272
271
}
273
272
Original file line number Diff line number Diff line change @@ -20,41 +20,23 @@ import (
20
20
type remote struct {
21
21
app * Application
22
22
subcommands
23
-
24
- // For backward compatibility, allow aliasing this command (it was previously
25
- // called 'inspect').
26
- //
27
- // TODO(rFindley): delete this after allowing some transition time in case
28
- // there were any users of 'inspect' (I suspect not).
29
- alias string
30
23
}
31
24
32
- func newRemote (app * Application , alias string ) * remote {
25
+ func newRemote (app * Application ) * remote {
33
26
return & remote {
34
27
app : app ,
35
28
subcommands : subcommands {
36
29
& listSessions {app : app },
37
30
& startDebugging {app : app },
38
31
},
39
- alias : alias ,
40
32
}
41
33
}
42
34
43
- func (r * remote ) Name () string {
44
- if r .alias != "" {
45
- return r .alias
46
- }
47
- return "remote"
48
- }
49
-
35
+ func (r * remote ) Name () string { return "remote" }
50
36
func (r * remote ) Parent () string { return r .app .Name () }
51
37
52
38
func (r * remote ) ShortHelp () string {
53
- short := "interact with the cuelsp daemon"
54
- if r .alias != "" {
55
- short += " (deprecated: use 'remote')"
56
- }
57
- return short
39
+ return "interact with the cuelsp daemon"
58
40
}
59
41
60
42
// listSessions is an inspect subcommand to list current sessions.
You can’t perform that action at this time.
0 commit comments