WIP adopt updated yaml-config with 'fromdefaults' struct tag

This commit is contained in:
Christian Schwarz
2018-08-31 21:50:59 +02:00
parent b95e983d0d
commit d55a271ac7
16 changed files with 206 additions and 26 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ func (t *tui) addIndent(indent int) {
t.moveLine(0, 0)
}
func RunStatus(config config.Config, args []string) error {
func RunStatus(config *config.Config, args []string) error {
httpc, err := controlHttpClient(config.Global.Control.SockPath)
if err != nil {
return err
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"github.com/zrepl/zrepl/daemon"
)
func RunWakeup(config config.Config, args []string) error {
func RunWakeup(config *config.Config, args []string) error {
if len(args) != 1 {
return errors.Errorf("Expected 1 argument: job")
}