mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-04-14 18:17:29 +08:00
add tui to no-channel build variant
This commit is contained in:
@@ -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
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
12
cmd/cmd_tui_stub.go
Normal 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`.")
|
||||
}
|
||||
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user