From ecb7f406f2743ca4230e178889bc20b4bc74d79e Mon Sep 17 00:00:00 2001 From: Snider Date: Sat, 21 Feb 2026 22:07:14 +0000 Subject: [PATCH] refactor: remove init() + RegisterCommands pattern Commands now register through Core framework lifecycle via cli.WithCommands() instead of side-channel init() functions. Co-Authored-By: Virgil --- cmd/tasks/cmd.go | 4 ---- cmd/workspace/cmd.go | 6 ------ 2 files changed, 10 deletions(-) diff --git a/cmd/tasks/cmd.go b/cmd/tasks/cmd.go index 47114e7..6946c6c 100644 --- a/cmd/tasks/cmd.go +++ b/cmd/tasks/cmd.go @@ -15,10 +15,6 @@ import ( "forge.lthn.ai/core/go/pkg/i18n" ) -func init() { - cli.RegisterCommands(AddTaskCommands) -} - // Style aliases from shared package var ( successStyle = cli.SuccessStyle diff --git a/cmd/workspace/cmd.go b/cmd/workspace/cmd.go index ef46b04..d9031cd 100644 --- a/cmd/workspace/cmd.go +++ b/cmd/workspace/cmd.go @@ -1,7 +1 @@ package workspace - -import "forge.lthn.ai/core/go/pkg/cli" - -func init() { - cli.RegisterCommands(AddWorkspaceCommands) -}