Add tests for access command

This commit is contained in:
9seconds
2021-03-12 21:57:53 +03:00
parent 546a5849f3
commit 185baf6bc9
8 changed files with 252 additions and 29 deletions
+3 -3
View File
@@ -7,10 +7,10 @@ import (
)
type GenerateSecret struct {
base
base `kong:"-"`
HostName string `arg optional help:"Hostname to use for domain fronting. Default is '${domain_front}'." name:"hostname" default:"${domain_front}"` // nolint: lll, govet
Hex bool `help:"Print secret in hex encoding."`
HostName string `kong:"arg,required,help='Hostname to use for domain fronting.',name='hostname'"` // nolint: lll, govet
Hex bool `kong:"help='Print secret in hex encoding.'"`
}
func (c *GenerateSecret) Run(cli *CLI, _ string) error {