mirror of
https://shylinux.com/x/ollama-story
synced 2025-07-02 04:21:20 +08:00
add some
This commit is contained in:
parent
b36987c337
commit
ef64b388d9
1
etc/exit.shy
Normal file
1
etc/exit.shy
Normal file
@ -0,0 +1 @@
|
|||||||
|
~ssh
|
2
etc/init.shy
Normal file
2
etc/init.shy
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
~ssh
|
||||||
|
source local.shy
|
2
go.mod
2
go.mod
@ -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
15
src/client/client.go
Normal 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{}) }
|
@ -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
15
src/server/server.go
Normal 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{}) }
|
Loading…
x
Reference in New Issue
Block a user