874 B
874 B
Command history
Commands were run in the order listed below on a debian based system.
Initial setup
-
Initialize go module
go mod init somepi.ddns.net/gitea/gilex-dev/YetAnotherToDoList
-
Install cobra-cli (try
~/go/bin/cobra-cli
ifcobra-cli
can not be found in yourPATH
)go install github.com/spf13/cobra-cli@latest cobra-cli init --viper --license gpl-3.0 --author "gilex-dev gilex-dev@proton.me"
-
Add missing modules
go mod tidy
-
Add license command
cobra-cli add license
-
Add qglgen
printf '// +build tools\npackage tools\nimport (_ "github.com/99designs/gqlgen"\n _ "github.com/99designs/gqlgen/graphql/introspection")' | gofmt > tools.go go mod tidy go run github.com/99designs/gqlgen init --server server/main.go go mod tidy cobra-cli add server