(ctx context.DnoteCtx)
| 133 | } |
| 134 | |
| 135 | func getGreeting(ctx context.DnoteCtx) string { |
| 136 | base := "Welcome to Dnote" |
| 137 | |
| 138 | serverURL := getServerDisplayURL(ctx) |
| 139 | if serverURL == "" { |
| 140 | return fmt.Sprintf("%s\n", base) |
| 141 | } |
| 142 | |
| 143 | return fmt.Sprintf("%s (%s)\n", base, serverURL) |
| 144 | } |
| 145 | |
| 146 | func newRun(ctx context.DnoteCtx) infra.RunEFunc { |
| 147 | return func(cmd *cobra.Command, args []string) error { |
no test coverage detected