From 01aaddad581ace8f31291ca2567bce51238553b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toma=C5=BE=20Jerman?= Date: Tue, 30 Jan 2024 13:53:47 +0100 Subject: [PATCH] Init ID generation at app CLI init --- server/app/cli.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/app/cli.go b/server/app/cli.go index 3a20fb97a..7a7d846f4 100644 --- a/server/app/cli.go +++ b/server/app/cli.go @@ -3,9 +3,10 @@ package app import ( "context" "fmt" - composeCommands "github.com/cortezaproject/corteza/server/compose/commands" "sync" + composeCommands "github.com/cortezaproject/corteza/server/compose/commands" + authCommands "github.com/cortezaproject/corteza/server/auth/commands" federationCommands "github.com/cortezaproject/corteza/server/federation/commands" "github.com/cortezaproject/corteza/server/pkg/actionlog" @@ -13,6 +14,7 @@ import ( "github.com/cortezaproject/corteza/server/pkg/cli" "github.com/cortezaproject/corteza/server/pkg/dal" "github.com/cortezaproject/corteza/server/pkg/envoyx" + "github.com/cortezaproject/corteza/server/pkg/id" "github.com/cortezaproject/corteza/server/pkg/options" "github.com/cortezaproject/corteza/server/store" systemCommands "github.com/cortezaproject/corteza/server/system/commands" @@ -30,6 +32,8 @@ func (app *CortezaApp) InitCLI() { envs []string ) + id.Init(ctx) + app.Command = cli.RootCommand(func() error { return nil })