Fix lint issues

This commit is contained in:
9seconds
2021-03-12 21:59:05 +03:00
parent 185baf6bc9
commit 18e3ca77de
4 changed files with 6 additions and 7 deletions
+2 -2
View File
@@ -36,8 +36,8 @@ type accessResponseURLs struct {
type Access struct {
base `kong:"-"`
ConfigPath string `kong:"arg,required,type='existingfile',help='Path to the configuration file.',name='config-path'"` // nolint: lll
Port uint `kong:"help='Port number. Default port is taken from configuration file, bind-to parameter',type:'uint'"`
ConfigPath string `kong:"arg,required,type='existingfile',help='Path to the configuration file.',name='config-path'"` // nolint: lll
Port uint `kong:"help='Port number. Default port is taken from configuration file, bind-to parameter',type:'uint'"` // nolint: lll
Hex bool `kong:"help='Print secret in hex encoding.'"`
}
-1
View File
@@ -99,7 +99,6 @@ var accressResponseJSONSchema = func() *gojsonschema.Schema {
}
}
`))
if err != nil {
panic(err)
}
+2 -2
View File
@@ -3,7 +3,7 @@ package cli
import "github.com/alecthomas/kong"
type CLI struct {
GenerateSecret GenerateSecret `kong:"cmd,help='Generate new proxy secret'"` // nolint: govet
Access Access `kong:"cmd,help='Print access information.'"` // nolint: govet
GenerateSecret GenerateSecret `kong:"cmd,help='Generate new proxy secret'"`
Access Access `kong:"cmd,help='Print access information.'"`
Version kong.VersionFlag `kong:"help='Print version.'"`
}
+2 -2
View File
@@ -7,9 +7,9 @@ import (
)
type GenerateSecret struct {
base `kong:"-"`
base `kong:"-"`
HostName string `kong:"arg,required,help='Hostname to use for domain fronting.',name='hostname'"` // nolint: lll, govet
HostName string `kong:"arg,required,help='Hostname to use for domain fronting.',name='hostname'"`
Hex bool `kong:"help='Print secret in hex encoding.'"`
}