mirror of https://github.com/golang/go.git
tools/internal/lsp/cmd: fix documentation
Change-Id: Ie21babc8879977fb1a3ef02737dbd24904722c26 Reviewed-on: https://go-review.googlesource.com/c/tools/+/212579 Reviewed-by: Rebecca Stambler <rstambler@golang.org> Run-TryBot: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
7b8e75db28
commit
9fb4d21460
|
|
@ -22,9 +22,6 @@ type version struct {
|
|||
app *Application
|
||||
}
|
||||
|
||||
// bug implements the bug command.
|
||||
type bug struct{}
|
||||
|
||||
func (v *version) Name() string { return "version" }
|
||||
func (v *version) Usage() string { return "" }
|
||||
func (v *version) ShortHelp() string { return "print the gopls version information" }
|
||||
|
|
@ -33,13 +30,15 @@ func (v *version) DetailedHelp(f *flag.FlagSet) {
|
|||
f.PrintDefaults()
|
||||
}
|
||||
|
||||
// Run collects some basic information and then prepares an issue ready to
|
||||
// be reported.
|
||||
// Run prints version information to stdout.
|
||||
func (v *version) Run(ctx context.Context, args ...string) error {
|
||||
debug.PrintVersionInfo(os.Stdout, v.app.Verbose, debug.PlainText)
|
||||
return nil
|
||||
}
|
||||
|
||||
// bug implements the bug command.
|
||||
type bug struct{}
|
||||
|
||||
func (b *bug) Name() string { return "bug" }
|
||||
func (b *bug) Usage() string { return "" }
|
||||
func (b *bug) ShortHelp() string { return "report a bug in gopls" }
|
||||
|
|
|
|||
Loading…
Reference in New Issue