Deprecate Yao Studio functionality and comment out related code
This commit is contained in:
parent
d7693a0487
commit
95dc351fa0
1 changed files with 16 additions and 16 deletions
32
cmd/start.go
32
cmd/start.go
|
|
@ -26,7 +26,6 @@ import (
|
||||||
"github.com/yaoapp/yao/service"
|
"github.com/yaoapp/yao/service"
|
||||||
"github.com/yaoapp/yao/setup"
|
"github.com/yaoapp/yao/setup"
|
||||||
"github.com/yaoapp/yao/share"
|
"github.com/yaoapp/yao/share"
|
||||||
"github.com/yaoapp/yao/studio"
|
|
||||||
itask "github.com/yaoapp/yao/task"
|
itask "github.com/yaoapp/yao/task"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
@ -123,29 +122,30 @@ var startCmd = &cobra.Command{
|
||||||
if mode == "development" {
|
if mode == "development" {
|
||||||
|
|
||||||
// Start Studio Server
|
// Start Studio Server
|
||||||
go func() {
|
// Yao Studio will be deprecated in the future
|
||||||
|
// go func() {
|
||||||
|
|
||||||
err = studio.Load(config.Conf)
|
// err = studio.Load(config.Conf)
|
||||||
if err != nil {
|
// if err != nil {
|
||||||
// fmt.Println(color.RedString(L("Studio Load: %s"), err.Error()))
|
// // fmt.Println(color.RedString(L("Studio Load: %s"), err.Error()))
|
||||||
log.Error("Studio Load: %s", err.Error())
|
// log.Error("Studio Load: %s", err.Error())
|
||||||
return
|
// return
|
||||||
}
|
// }
|
||||||
|
|
||||||
err := studio.Start(config.Conf)
|
// err := studio.Start(config.Conf)
|
||||||
if err != nil {
|
// if err != nil {
|
||||||
log.Error("Studio Start: %s", err.Error())
|
// log.Error("Studio Start: %s", err.Error())
|
||||||
return
|
// return
|
||||||
}
|
// }
|
||||||
}()
|
// }()
|
||||||
defer studio.Stop()
|
// defer studio.Stop()
|
||||||
|
|
||||||
printApis(false)
|
printApis(false)
|
||||||
printTasks(false)
|
printTasks(false)
|
||||||
printSchedules(false)
|
printSchedules(false)
|
||||||
printConnectors(false)
|
printConnectors(false)
|
||||||
printStores(false)
|
printStores(false)
|
||||||
printStudio(false, host)
|
// printStudio(false, host)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue