Ajouter cobra/viper pour gérer le cli

Déplacer logique de server.go vers serverCmd

Ajouter .cobra.yaml pour prochaines commandes

Modifier Dockerfile pour appeler serverCmd

Retirer certains commentaires dans serverCmd
This commit is contained in:
Victor Lacasse-Beaudoin 2023-03-28 02:35:42 -04:00
parent 643100f325
commit 378db992b5
7 changed files with 578 additions and 12 deletions

19
go.mod
View file

@ -2,13 +2,28 @@ module git.agecem.com/agecem/agecem-org
go 1.19
require github.com/labstack/echo/v4 v4.10.0
require (
github.com/labstack/echo/v4 v4.10.0
github.com/spf13/cobra v1.6.1
github.com/spf13/viper v1.15.0
)
require (
github.com/fsnotify/fsnotify v1.6.0 // indirect
github.com/golang-jwt/jwt v3.2.2+incompatible // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/inconshreveable/mousetrap v1.0.1 // indirect
github.com/labstack/gommon v0.4.0 // indirect
github.com/magiconair/properties v1.8.7 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.16 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/pelletier/go-toml/v2 v2.0.6 // indirect
github.com/spf13/afero v1.9.3 // indirect
github.com/spf13/cast v1.5.0 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/subosito/gotenv v1.4.2 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
github.com/valyala/fasttemplate v1.2.2 // indirect
golang.org/x/crypto v0.2.0 // indirect
@ -16,4 +31,6 @@ require (
golang.org/x/sys v0.3.0 // indirect
golang.org/x/text v0.5.0 // indirect
golang.org/x/time v0.2.0 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)