mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 22:34:02 +03:00
Change network to accept DialFunc
This commit is contained in:
@@ -13,7 +13,7 @@ type GenerateSecret struct {
|
||||
Hex bool `help:"Print secret in hex encoding."`
|
||||
}
|
||||
|
||||
func (c *GenerateSecret) Run(cli *CLI) error { // nolint: unparam
|
||||
func (c *GenerateSecret) Run(cli *CLI, _ string) error {
|
||||
secret := mtglib.GenerateSecret(cli.GenerateSecret.HostName)
|
||||
|
||||
if cli.GenerateSecret.Hex {
|
||||
|
||||
Reference in New Issue
Block a user