This commit is contained in:
1 parent
e68027843d
commit
488af3d373
7 files changed
+34
-6
No files matched your search
@@ -5,6 +5,8 @@ import (
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"github.com/joho/godotenv"
|
||||
|
||||
"git.eeqj.de/sneak/formless/database"
|
||||
_ "github.com/jinzhu/gorm/dialects/postgres"
|
||||
_ "github.com/jinzhu/gorm/dialects/sqlite"
|
||||
@@ -17,6 +19,12 @@ import (
|
||||
|
||||
// CLIEntry is the main entrypoint
|
||||
func CLIEntry(version string, buildarch string) int {
|
||||
|
||||
err := godotenv.Load()
|
||||
if err != nil {
|
||||
panic("Error loading .env file")
|
||||
}
|
||||
|
||||
f := new(Formless)
|
||||
f.version = version
|
||||
f.buildarch = buildarch
|
||||
|
||||
Reference in new issue
Block a user