Allowing Commands to reconfigure app Configuration, this is will allow default ports to be currently added to remote presets
This commit is contained in:
@@ -21,5 +21,11 @@ import (
|
||||
"github.com/niruix/sshwifty/application/log"
|
||||
)
|
||||
|
||||
// Reconfigurator reloads configuration
|
||||
type Reconfigurator func(p Configuration) Configuration
|
||||
|
||||
// Loader Configuration loader
|
||||
type Loader func(log log.Logger) (name string, cfg Configuration, err error)
|
||||
type Loader func(
|
||||
log log.Logger,
|
||||
r Reconfigurator,
|
||||
) (name string, cfg Configuration, err error)
|
||||
|
||||
Reference in New Issue
Block a user