Added server implementation and serve command

This commit is contained in:
David J. Allen 2024-04-11 10:19:29 -06:00
parent 112db14dd4
commit 3905a8a023
No known key found for this signature in database
GPG key ID: 717C593FF60A2ACC
4 changed files with 158 additions and 11 deletions

View file

@ -11,7 +11,7 @@ import (
var (
configPath string
config *configurator.Config
config configurator.Config
)
var rootCmd = &cobra.Command{
@ -34,7 +34,7 @@ func Execute() {
func init() {
cobra.OnInitialize(initConfig)
rootCmd.PersistentFlags().StringVar(&configPath, "config", "", "set the config path")
rootCmd.PersistentFlags().StringVarP(&configPath, "config", "c", "", "set the config path")
}
func initConfig() {