mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-09-29 14:06:36 +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
23 lines
385 B
Go
23 lines
385 B
Go
// Copyright 2026 Arctel.net
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package cmd
|
|
|
|
import (
|
|
"log"
|
|
|
|
"Wavelet/core"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var apiCmd = &cobra.Command{
|
|
Use: "api",
|
|
Short: "wavelet API",
|
|
Run: func(_ *cobra.Command, _ []string) {
|
|
app := newWaveletApp(core.ProfileAPI)
|
|
if err := app.Run(); err != nil {
|
|
log.Fatalf("[API] run failed: %v\n", err)
|
|
}
|
|
},
|
|
}
|