mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-09-02 16:31:56 +03:00
Fix lint issues
This commit is contained in:
+1
-1
@@ -37,7 +37,7 @@ type Access struct {
|
|||||||
base `kong:"-"`
|
base `kong:"-"`
|
||||||
|
|
||||||
ConfigPath string `kong:"arg,required,type='existingfile',help='Path to the configuration file.',name='config-path'"` // nolint: lll
|
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'"`
|
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.'"`
|
Hex bool `kong:"help='Print secret in hex encoding.'"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -99,7 +99,6 @@ var accressResponseJSONSchema = func() *gojsonschema.Schema {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
`))
|
`))
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -3,7 +3,7 @@ package cli
|
|||||||
import "github.com/alecthomas/kong"
|
import "github.com/alecthomas/kong"
|
||||||
|
|
||||||
type CLI struct {
|
type CLI struct {
|
||||||
GenerateSecret GenerateSecret `kong:"cmd,help='Generate new proxy secret'"` // nolint: govet
|
GenerateSecret GenerateSecret `kong:"cmd,help='Generate new proxy secret'"`
|
||||||
Access Access `kong:"cmd,help='Print access information.'"` // nolint: govet
|
Access Access `kong:"cmd,help='Print access information.'"`
|
||||||
Version kong.VersionFlag `kong:"help='Print version.'"`
|
Version kong.VersionFlag `kong:"help='Print version.'"`
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import (
|
|||||||
type GenerateSecret struct {
|
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.'"`
|
Hex bool `kong:"help='Print secret in hex encoding.'"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user