Some checks failed
E2E Tests / E2E Tests (push) Failing after 1m23s
Tests / Go Tests (push) Failing after 39s
Desktop Release / Build linux (push) Failing after 46s
Release / Test (push) Failing after 2s
Tests / C++ Tests (push) Failing after 1m12s
Release / Release (push) Has been cancelled
Desktop Release / Build darwin (push) Has been cancelled
Desktop Release / Build windows (push) Has been cancelled
Desktop Release / Create Release (push) Has been cancelled
Move module declaration and all internal imports from github.com/Snider/Mining to forge.lthn.ai/Snider/Mining. Also updates Borg, Enchantrix, and Poindexter dependency paths to forge.lthn.ai. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
26 lines
510 B
Go
26 lines
510 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() {
|
|
// If no command is provided, default to "serve"
|
|
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)
|
|
}
|
|
}
|