mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-09-29 14:06:36 +08:00
f2ab94501c
- Relocated go.mod and go.sum into backend/ root directory - Stripped redundant backend/ segments from all Go imports (github.com/Rain-kl/Wavelet/...) - Unified Makefile, swagger, and build-test to execute in backend/ module context - Ensured 100% build-test, code-check, format, and swagger pass
25 lines
513 B
Go
25 lines
513 B
Go
// Copyright 2025 linux.do
|
|
// Copyright 2026 Arctel.net
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
// Package cmd 提供 CLI 命令入口
|
|
package cmd
|
|
|
|
import (
|
|
"log"
|
|
|
|
"github.com/Rain-kl/Wavelet/core"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var allCmd = &cobra.Command{
|
|
Use: "all",
|
|
Short: "以融合模式同时启动 API、Worker 和 Scheduler",
|
|
Run: func(_ *cobra.Command, _ []string) {
|
|
app := newWaveletApp(core.ProfileAll)
|
|
if err := app.Run(); err != nil {
|
|
log.Fatalf("[All] run failed: %v\n", err)
|
|
}
|
|
},
|
|
}
|