add tui to no-channel build variant

This commit is contained in:
lpf
2026-03-10 18:28:32 +08:00
parent 06021d03c0
commit 65ff318ae3
7 changed files with 1600 additions and 69 deletions

View File

@@ -98,6 +98,9 @@ func printHelp() {
fmt.Println(" channel Test and manage messaging channels")
fmt.Println(" node Register remote node metadata and heartbeat")
fmt.Println(" skills Manage skills (install, list, remove)")
if tuiEnabled {
fmt.Println(" tui Chat in terminal using the gateway chat API")
}
fmt.Println(" uninstall Uninstall clawgo components")
fmt.Println(" version Show version information")
fmt.Println()

1513
cmd/cmd_tui.go Normal file

File diff suppressed because it is too large Load Diff

12
cmd/cmd_tui_stub.go Normal file
View File

@@ -0,0 +1,12 @@
//go:build !with_tui
package main
import "fmt"
var tuiEnabled = false
func tuiCmd() {
fmt.Println("TUI is not included in this build.")
fmt.Println("Install the no-channel variant to use `clawgo tui`.")
}

View File

@@ -71,6 +71,8 @@ func main() {
nodeCmd()
case "skills":
skillsCmd()
case "tui":
tuiCmd()
case "version", "--version", "-v":
fmt.Printf("%s clawgo v%s\n", logo, version)
case "uninstall":