From 95dc351fa05db8f34485b3ba66e9e1e30c52242d Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 29 Nov 2024 17:43:38 +0800 Subject: [PATCH] Deprecate Yao Studio functionality and comment out related code --- cmd/start.go | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/cmd/start.go b/cmd/start.go index 321aac56..1374d4f0 100644 --- a/cmd/start.go +++ b/cmd/start.go @@ -26,7 +26,6 @@ import ( "github.com/yaoapp/yao/service" "github.com/yaoapp/yao/setup" "github.com/yaoapp/yao/share" - "github.com/yaoapp/yao/studio" itask "github.com/yaoapp/yao/task" ) @@ -123,29 +122,30 @@ var startCmd = &cobra.Command{ if mode == "development" { // Start Studio Server - go func() { + // Yao Studio will be deprecated in the future + // go func() { - err = studio.Load(config.Conf) - if err != nil { - // fmt.Println(color.RedString(L("Studio Load: %s"), err.Error())) - log.Error("Studio Load: %s", err.Error()) - return - } + // err = studio.Load(config.Conf) + // if err != nil { + // // fmt.Println(color.RedString(L("Studio Load: %s"), err.Error())) + // log.Error("Studio Load: %s", err.Error()) + // return + // } - err := studio.Start(config.Conf) - if err != nil { - log.Error("Studio Start: %s", err.Error()) - return - } - }() - defer studio.Stop() + // err := studio.Start(config.Conf) + // if err != nil { + // log.Error("Studio Start: %s", err.Error()) + // return + // } + // }() + // defer studio.Stop() printApis(false) printTasks(false) printSchedules(false) printConnectors(false) printStores(false) - printStudio(false, host) + // printStudio(false, host) }