Mining/cmd/mining/main.go
Virgil 0671c60a1a
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
Align CLI naming with AX conventions
2026-04-04 06:49:40 +00:00

26 lines
547 B
Go

package main
import (
"fmt"
"os"
"forge.lthn.ai/Snider/Mining/cmd/mining/cmd"
_ "forge.lthn.ai/Snider/Mining/docs"
)
// @title Mining API
// @version 1.0
// @description This is a sample server for a mining application.
// @host localhost:8080
// @BasePath /api/v1/mining
func main() {
// go run ./cmd/mining starts the HTTP API by default when no subcommand is provided.
if len(os.Args) == 1 {
os.Args = append(os.Args, "serve")
}
if err := cmd.Execute(); err != nil {
fmt.Fprintf(os.Stderr, "Error: %v\n", err)
os.Exit(1)
}
}