Files
crawlab/core/utils/logo.go
Marvin Zhang a13893b627 feat: add logo printing functionality and update logger usage
- Introduced a new utility function to print a logo and welcome information for the Crawlab server, enhancing user experience during startup.
- Updated logger variable names in the apps package for consistency and clarity.
- Added a new dependency on github.com/common-nighthawk/go-figure to facilitate logo rendering.
- Improved the server command to display the logo when the server starts, provided the user is not using the pro version.
2024-12-25 13:08:56 +08:00

27 lines
723 B
Go

package utils
import (
"fmt"
"github.com/common-nighthawk/go-figure"
)
func PrintLogoWithWelcomeInfo() {
printLogo()
printWelcomeInfo()
}
func printLogo() {
figure.NewColorFigure("Crawlab", "slant", "blue", true).Print()
}
func printWelcomeInfo() {
fmt.Println("Distributed web crawling platform for efficient, scalable data extraction.")
fmt.Println("For more information, please refer to the following resources:")
fmt.Println("- Website: https://crawlab.cn")
fmt.Println("- Documentation: https://docs.crawlab.cn")
fmt.Println("- GitHub: https://github.com/crawlab-team/crawlab")
if IsMaster() {
fmt.Println("Visit https://localhost:8080 for the web ui, once the server is ready.")
}
}