mirror of
https://shylinux.com/x/ContextOS
synced 2025-04-25 08:48:06 +08:00
opt some
This commit is contained in:
parent
f9eb42741e
commit
2b5866a555
3
Makefile
3
Makefile
@ -5,3 +5,6 @@ export CGO_ENABLED=0
|
||||
all:
|
||||
@echo && date
|
||||
go build -v -o bin/ice.bin src/main.go && chmod u+x bin/ice.bin && ./bin/ice.sh restart
|
||||
relay: src/relay.go
|
||||
@echo && date
|
||||
go build -v -o usr/publish/$@ src/$@.go && chmod u+x usr/publish/$@
|
||||
|
@ -1,3 +1,6 @@
|
||||
field web.code.compile
|
||||
field web.code.publish
|
||||
|
||||
title "contexts"
|
||||
|
||||
chapter "实践"
|
||||
|
@ -3,14 +3,15 @@ package main
|
||||
import (
|
||||
ice "github.com/shylinux/icebergs"
|
||||
_ "github.com/shylinux/icebergs/base/ssh"
|
||||
log "github.com/shylinux/toolkits/logs"
|
||||
|
||||
"os"
|
||||
"path"
|
||||
)
|
||||
|
||||
func main() {
|
||||
args := []string{"ssh.connect", "open", "authfile", path.Join(os.Getenv("HOME"), ".ssh/" path.Base(os.Args[0])".json")}
|
||||
log.LogDisable = true
|
||||
args := []string{"ssh.connect", "open", "authfile", path.Join(os.Getenv("HOME"), ".ssh/", path.Base(os.Args[0])+".json")}
|
||||
args = append(args, os.Args[1:]...)
|
||||
print(ice.Run(args...))
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user