mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 16:24:03 +03:00
Fix lint issues
This commit is contained in:
+2
-2
@@ -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.'"`
|
||||
}
|
||||
|
||||
|
||||
@@ -99,7 +99,6 @@ var accressResponseJSONSchema = func() *gojsonschema.Schema {
|
||||
}
|
||||
}
|
||||
`))
|
||||
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
+2
-2
@@ -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.'"`
|
||||
}
|
||||
|
||||
@@ -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.'"`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user