chore: remove promotional branding output

This commit is contained in:
boojack 2026-08-31 21:33:29 +08:00
parent 59541ea438
commit 5b2bd74bdb

View file

@ -33,7 +33,6 @@ func initSlogDefault() {
var ( var (
rootCmd = &cobra.Command{ rootCmd = &cobra.Command{
Use: "memos", Use: "memos",
Short: `An open source, lightweight note-taking service. Easily capture and share your great thoughts.`,
SilenceErrors: true, SilenceErrors: true,
SilenceUsage: true, SilenceUsage: true,
RunE: func(_ *cobra.Command, _ []string) error { RunE: func(_ *cobra.Command, _ []string) error {
@ -163,7 +162,7 @@ func runServer() error {
} }
closeStore = false closeStore = false
printGreetings(instanceProfile, accessSetting.AccessMode) printServerInfo(instanceProfile, accessSetting.AccessMode)
<-signals <-signals
s.Shutdown(context.Background()) s.Shutdown(context.Background())
return nil return nil
@ -181,7 +180,7 @@ func privateWebhookAllowlist() []string {
return entries return entries
} }
func printGreetings(profile *profile.Profile, accessMode storepb.InstanceAccessMode) { func printServerInfo(profile *profile.Profile, accessMode storepb.InstanceAccessMode) {
fmt.Printf("Memos %s started successfully!\n", profile.Version) fmt.Printf("Memos %s started successfully!\n", profile.Version)
if profile.Demo { if profile.Demo {
@ -210,11 +209,6 @@ func printGreetings(profile *profile.Profile, accessMode storepb.InstanceAccessM
accessModeLabel = "public" accessModeLabel = "public"
} }
fmt.Printf("Access mode: %s\n", accessModeLabel) fmt.Printf("Access mode: %s\n", accessModeLabel)
fmt.Println()
fmt.Printf("Documentation: %s\n", "https://usememos.com")
fmt.Printf("Source code: %s\n", "https://github.com/usememos/memos")
fmt.Println("\nHappy note-taking!")
} }
func main() { func main() {