mirror of
https://github.com/abhinavxd/libredesk.git
synced 2025-11-03 05:23:48 +00:00
feat: update make file adds dev environment targets.
This commit is contained in:
19
cmd/main.go
19
cmd/main.go
@@ -92,6 +92,17 @@ func main() {
|
||||
// Load command line flags into Koanf.
|
||||
initFlags()
|
||||
|
||||
// Version flag.
|
||||
if ko.Bool("version") {
|
||||
fmt.Println(buildString)
|
||||
os.Exit(0)
|
||||
}
|
||||
|
||||
// Build string injected at build time.
|
||||
if buildString != "" {
|
||||
colorlog.Green("Build: %s", buildString)
|
||||
}
|
||||
|
||||
// Load the config files into Koanf.
|
||||
initConfig(ko)
|
||||
|
||||
@@ -101,14 +112,6 @@ func main() {
|
||||
// Init DB.
|
||||
db := initDB()
|
||||
|
||||
// Version flag.
|
||||
if ko.Bool("version") {
|
||||
fmt.Println(buildString)
|
||||
os.Exit(0)
|
||||
}
|
||||
|
||||
colorlog.Green("Build: %s", buildString)
|
||||
|
||||
// Installer.
|
||||
if ko.Bool("install") {
|
||||
install(ctx, db, fs)
|
||||
|
||||
Reference in New Issue
Block a user