This commit is contained in:
IT 老营长 @云轩领航-创始人 2025-02-08 09:38:36 +08:00
parent b36987c337
commit ef64b388d9
6 changed files with 37 additions and 2 deletions

1
etc/exit.shy Normal file
View File

@ -0,0 +1 @@
~ssh

2
etc/init.shy Normal file
View File

@ -0,0 +1,2 @@
~ssh
source local.shy

2
go.mod
View File

@ -1,4 +1,4 @@
module github.com/shylinux/ollama-story module shylinux.com/x/ollama-story
go 1.13 go 1.13

15
src/client/client.go Normal file
View File

@ -0,0 +1,15 @@
package client
import "shylinux.com/x/ice"
type client struct {
ice.Hash
list string `name:"list hash auto" help:"client"`
}
func (s client) List(m *ice.Message, arg ...string) {
s.Hash.List(m, arg...)
}
func init() { ice.Cmd("web.chat.client.client", client{}) }

View File

@ -1,5 +1,7 @@
package main package main
import "shylinux.com/x/ice" import "shylinux.com/x/ice"
import _ "shylinux.com/x/ollama-story/src/server"
import _ "shylinux.com/x/ollama-story/src/client"
func main() { print(ice.Run()) } func main() { print(ice.Run()) }

15
src/server/server.go Normal file
View File

@ -0,0 +1,15 @@
package server
import "shylinux.com/x/ice"
type server struct {
ice.Hash
list string `name:"list hash auto" help:"server"`
}
func (s server) List(m *ice.Message, arg ...string) {
s.Hash.List(m, arg...)
}
func init() { ice.Cmd("web.chat.server.server", server{}) }