mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-09-30 06:16:37 +08:00
9f8890d159
- Declared module Wavelet in backend/go.mod - Replaced github.com/Rain-kl/Wavelet/ with clean Wavelet/ import paths across backend codebase - Updated architecture guards, Makefile, swagger, and build tests - 100% passed all tests, lint checks, and binary compilation
24 lines
467 B
Go
24 lines
467 B
Go
// Copyright 2026 Arctel.net
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
// Package cmd 提供 CLI 命令入口
|
|
package cmd
|
|
|
|
import (
|
|
"log"
|
|
|
|
"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)
|
|
}
|
|
},
|
|
}
|