couple of enhancements, reorg etc

This commit is contained in:
2023-02-24 12:16:03 +01:00
parent 416317df63
commit 2a42cbb07a
11 changed files with 358 additions and 212 deletions

View File

@@ -22,8 +22,8 @@ import (
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"github.com/spf13/viper"
"github.com/tlinden/up/upd/api"
"github.com/tlinden/up/upd/cfg"
"github.com/tlinden/up/upd/lib"
"os"
"strings"
)
@@ -71,7 +71,7 @@ func Execute() {
conf.ApplyDefaults()
// actual execution starts here
return lib.Runserver(&conf, args)
return api.Runserver(&conf, args)
},
PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
return initConfig(cmd)