mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-02 06:56:36 +08:00
feat(cmd): restore startup banner display in CLI entrypoints
This commit is contained in:
@@ -15,6 +15,10 @@ var apiCmd = &cobra.Command{
|
||||
Use: "api",
|
||||
Short: "wavelet API",
|
||||
Run: func(_ *cobra.Command, _ []string) {
|
||||
printStartupBanner(startupState{
|
||||
mode: "api",
|
||||
listensForHTTP: true,
|
||||
})
|
||||
app := newWaveletApp(core.ProfileAPI)
|
||||
if err := app.Run(); err != nil {
|
||||
log.Fatalf("[API] run failed: %v\n", err)
|
||||
|
||||
Reference in New Issue
Block a user