fix: restore CLI entry point and register all commands
The main.go was removed when Wails3 apps were added to cmd/, breaking `go build .` for the core CLI. Restore it and update variants/full.go to include daemon, forge, mcpcmd, prod, and session commands. Drop gitea (superseded by forge) and unifi (unused). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
177ce27e43
commit
ca4c8208f7
2 changed files with 23 additions and 0 deletions
|
|
@ -20,6 +20,11 @@
|
||||||
// - test: Test runner with coverage
|
// - test: Test runner with coverage
|
||||||
// - qa: Quality assurance workflows
|
// - qa: Quality assurance workflows
|
||||||
// - monitor: Security monitoring aggregation
|
// - monitor: Security monitoring aggregation
|
||||||
|
// - forge: Forgejo instance management
|
||||||
|
// - prod: Production infrastructure
|
||||||
|
// - mcp: MCP server management
|
||||||
|
// - daemon: Background service daemon
|
||||||
|
// - session: Session management
|
||||||
|
|
||||||
package variants
|
package variants
|
||||||
|
|
||||||
|
|
@ -30,20 +35,25 @@ import (
|
||||||
_ "github.com/host-uk/core/internal/cmd/collect"
|
_ "github.com/host-uk/core/internal/cmd/collect"
|
||||||
_ "github.com/host-uk/core/internal/cmd/config"
|
_ "github.com/host-uk/core/internal/cmd/config"
|
||||||
_ "github.com/host-uk/core/internal/cmd/crypt"
|
_ "github.com/host-uk/core/internal/cmd/crypt"
|
||||||
|
_ "github.com/host-uk/core/internal/cmd/daemon"
|
||||||
_ "github.com/host-uk/core/internal/cmd/deploy"
|
_ "github.com/host-uk/core/internal/cmd/deploy"
|
||||||
_ "github.com/host-uk/core/internal/cmd/dev"
|
_ "github.com/host-uk/core/internal/cmd/dev"
|
||||||
_ "github.com/host-uk/core/internal/cmd/docs"
|
_ "github.com/host-uk/core/internal/cmd/docs"
|
||||||
_ "github.com/host-uk/core/internal/cmd/doctor"
|
_ "github.com/host-uk/core/internal/cmd/doctor"
|
||||||
|
_ "github.com/host-uk/core/internal/cmd/forge"
|
||||||
_ "github.com/host-uk/core/internal/cmd/gitcmd"
|
_ "github.com/host-uk/core/internal/cmd/gitcmd"
|
||||||
_ "github.com/host-uk/core/internal/cmd/go"
|
_ "github.com/host-uk/core/internal/cmd/go"
|
||||||
_ "github.com/host-uk/core/internal/cmd/help"
|
_ "github.com/host-uk/core/internal/cmd/help"
|
||||||
|
_ "github.com/host-uk/core/internal/cmd/mcpcmd"
|
||||||
_ "github.com/host-uk/core/internal/cmd/monitor"
|
_ "github.com/host-uk/core/internal/cmd/monitor"
|
||||||
_ "github.com/host-uk/core/internal/cmd/php"
|
_ "github.com/host-uk/core/internal/cmd/php"
|
||||||
_ "github.com/host-uk/core/internal/cmd/pkgcmd"
|
_ "github.com/host-uk/core/internal/cmd/pkgcmd"
|
||||||
_ "github.com/host-uk/core/internal/cmd/plugin"
|
_ "github.com/host-uk/core/internal/cmd/plugin"
|
||||||
|
_ "github.com/host-uk/core/internal/cmd/prod"
|
||||||
_ "github.com/host-uk/core/internal/cmd/qa"
|
_ "github.com/host-uk/core/internal/cmd/qa"
|
||||||
_ "github.com/host-uk/core/internal/cmd/sdk"
|
_ "github.com/host-uk/core/internal/cmd/sdk"
|
||||||
_ "github.com/host-uk/core/internal/cmd/security"
|
_ "github.com/host-uk/core/internal/cmd/security"
|
||||||
|
_ "github.com/host-uk/core/internal/cmd/session"
|
||||||
_ "github.com/host-uk/core/internal/cmd/setup"
|
_ "github.com/host-uk/core/internal/cmd/setup"
|
||||||
_ "github.com/host-uk/core/internal/cmd/test"
|
_ "github.com/host-uk/core/internal/cmd/test"
|
||||||
_ "github.com/host-uk/core/internal/cmd/updater"
|
_ "github.com/host-uk/core/internal/cmd/updater"
|
||||||
|
|
|
||||||
13
main.go
Normal file
13
main.go
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"github.com/host-uk/core/pkg/cli"
|
||||||
|
|
||||||
|
// Build variants import commands via self-registration.
|
||||||
|
// See internal/variants/ for available variants: full, ci, php, minimal.
|
||||||
|
_ "github.com/host-uk/core/internal/variants"
|
||||||
|
)
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
cli.Main()
|
||||||
|
}
|
||||||
Loading…
Add table
Reference in a new issue