chore: update cmd entry folder

This commit is contained in:
Steven
2023-06-20 15:55:42 +08:00
parent 805ab9996e
commit 8ce1d21c2a
5 changed files with 12 additions and 18 deletions

View File

@@ -1,4 +1,4 @@
package cmd
package main
import (
"context"
@@ -10,6 +10,7 @@ import (
"github.com/spf13/cobra"
"github.com/spf13/viper"
_ "modernc.org/sqlite"
"github.com/boojack/shortify/server"
_profile "github.com/boojack/shortify/server/profile"
@@ -127,3 +128,10 @@ func initConfig() {
println("version:", profile.Version)
println("---")
}
func main() {
err := Execute()
if err != nil {
panic(err)
}
}