diff --git a/src/demo.go b/src/demo.go new file mode 100644 index 00000000..4b1367e6 --- /dev/null +++ b/src/demo.go @@ -0,0 +1,11 @@ +package main + +import "fmt" + +func main() { + fmt.Println("hello world") + fmt.Println("hello world") + fmt.Println("hello world") + fmt.Println("hello world") + fmt.Println("hello world") +} diff --git a/src/h2/h2.c b/src/h2/h2.c new file mode 100644 index 00000000..53bcc82d --- /dev/null +++ b/src/h2/h2.c @@ -0,0 +1,5 @@ +#include + +int main(int argc, char *argv[]) { + printf("hello world\n"); +} diff --git a/src/h2/h2.css b/src/h2/h2.css new file mode 100644 index 00000000..da13fcef --- /dev/null +++ b/src/h2/h2.css @@ -0,0 +1,3 @@ +body fieldset.web.code.h2.h2 div.output { + background-color:gray; +} \ No newline at end of file diff --git a/src/h2/h2.go b/src/h2/h2.go index 5f48deab..d364c37f 100644 --- a/src/h2/h2.go +++ b/src/h2/h2.go @@ -6,15 +6,10 @@ import ( type h2 struct { ice.Zone - list string `name:"list zone id auto insert show" help:"示例"` } -func (s h2) Show(m *ice.Message, arg ...string) { - m.Echo("hello world") -} -func (s h2) List(m *ice.Message, arg ...string) { - s.Zone.List(m, arg...) -} +func (s h2) Show(m *ice.Message, arg ...string) { m.Echo("hello world") } +func (s h2) List(m *ice.Message, arg ...string) { s.Zone.List(m, arg...) } func init() { ice.Cmd("web.code.h2.h2", h2{}) } diff --git a/src/h2/h2.html b/src/h2/h2.html new file mode 100644 index 00000000..1836f334 --- /dev/null +++ b/src/h2/h2.html @@ -0,0 +1,9 @@ + + + volcanos + + + + + + diff --git a/src/h2/h2.js b/src/h2/h2.js new file mode 100644 index 00000000..40f2daec --- /dev/null +++ b/src/h2/h2.js @@ -0,0 +1,3 @@ +Volcanos(chat.ONIMPORT, {_init: function(can, msg) { + msg.Echo("hello world").Dump(can) +}}) diff --git a/src/h2/h2.py b/src/h2/h2.py new file mode 100644 index 00000000..e2c08566 --- /dev/null +++ b/src/h2/h2.py @@ -0,0 +1 @@ +print "hello world" \ No newline at end of file diff --git a/src/h2/h2.shy b/src/h2/h2.shy index e02e9801..fbdf65fe 100644 --- a/src/h2/h2.shy +++ b/src/h2/h2.shy @@ -1,6 +1,5 @@ chapter "h2" - field web.code.h2.h2 spark "hello world" shell ` diff --git a/src/h2/h3.sh b/src/h2/h3.sh index 2402afb9..f2ea43ff 100644 --- a/src/h2/h3.sh +++ b/src/h2/h3.sh @@ -3,3 +3,4 @@ demo1() { echo "hello world" } +demo1 diff --git a/src/main.go b/src/main.go index 089f1718..570d3c00 100644 --- a/src/main.go +++ b/src/main.go @@ -26,7 +26,8 @@ import ( _ "shylinux.com/x/linux-story/src/busybox" _ "shylinux.com/x/linux-story/src/ctags" _ "shylinux.com/x/linux-story/src/ffmpeg" - _ "shylinux.com/x/linux-story/src/gcc" + + // _ "shylinux.com/x/linux-story/src/gcc" _ "shylinux.com/x/linux-story/src/gdb" _ "shylinux.com/x/linux-story/src/glibc" _ "shylinux.com/x/linux-story/src/kernel" diff --git a/src/main.sh b/src/main.sh index acbfe2b8..e487e4bf 100644 --- a/src/main.sh +++ b/src/main.sh @@ -1,6 +1,6 @@ #!/bin/sh -require "shylinux.com/x/contexts/src/h2/h2.sh" +# require "shylinux.com/x/contexts/src/h2/h2.sh" main() { case "$1" in @@ -19,7 +19,8 @@ main() { ish_sys_dev_init >/dev/null; shift; [ -n "$*" ] && ish_sys_dev_run "$@" ;; *) - require src/hi/hi.sh + # require src/hi/hi.sh + echo "hello world" ;; esac }