refactor: remove service factory wrappers, call store init methods directly

Replace InitNodeService/GetNodeService/GetNodeServiceForUser with thin
NewLocalNodeService/NewRemoteNodeService constructors; move wiring logic
into cmd/root.go (getNodeService helper) and an inline closure in serve.go.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-02 00:56:45 +02:00
parent 03a896d23f
commit 51341eeb84
10 changed files with 37 additions and 40 deletions

View File

@@ -15,7 +15,7 @@ var lStatus, lPrio, lType, lNamespace, lAssignee, lMention string
var listCmd = &cobra.Command{
Use: "list", Short: "List nodes",
Run: func(cmd *cobra.Command, args []string) {
svc, err := service.GetNodeService(cfg)
svc, err := getNodeService()
if err != nil {
fmt.Fprintln(os.Stderr, err)
return