diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b512c09 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +node_modules \ No newline at end of file diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..aa58cd2 --- /dev/null +++ b/go.mod @@ -0,0 +1,15 @@ +module kumoly.io/tools/goshell + +go 1.17 + +require ( + github.com/creack/pty v1.1.17 + github.com/gorilla/websocket v1.4.2 + kumoly.io/lib/klog v0.0.8 + kumoly.io/lib/ksrv v0.0.2-0.20211112060911-0d61b343a298 +) + +require ( + github.com/mattn/go-isatty v0.0.14 // indirect + golang.org/x/sys v0.0.0-20211103235746-7861aae1554b // indirect +) diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..78f97c1 --- /dev/null +++ b/go.sum @@ -0,0 +1,13 @@ +github.com/creack/pty v1.1.17 h1:QeVUsEDNrLBW4tMgZHvxy18sKtr6VI492kBhUfhDJNI= +github.com/creack/pty v1.1.17/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr4O4= +github.com/gorilla/websocket v1.4.2 h1:+/TMaTYc4QFitKJxsQ7Yye35DkWvkdLcvGKqM+x0Ufc= +github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= +github.com/mattn/go-isatty v0.0.14 h1:yVuAays6BHfxijgZPzw+3Zlu5yQgKGP2/hcQbHb7S9Y= +github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= +golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211103235746-7861aae1554b h1:1VkfZQv42XQlA/jchYumAnv1UPo6RgF9rJFkTgZIxO4= +golang.org/x/sys v0.0.0-20211103235746-7861aae1554b/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +kumoly.io/lib/klog v0.0.8 h1:6hTfDlZh7KGnPrd2tUrauCKRImSnyyN9DHXpey3Czn8= +kumoly.io/lib/klog v0.0.8/go.mod h1:Snm+c1xRrh/RbXsxQf7UGYbAJGPcIa6bEEN+CmzJh7M= +kumoly.io/lib/ksrv v0.0.2-0.20211112060911-0d61b343a298 h1:0raqoIXmNpD6s1SrJbieAyIIkDyhe+aqfaXvx8wenrI= +kumoly.io/lib/ksrv v0.0.2-0.20211112060911-0d61b343a298/go.mod h1:pwd+NspxnoxPJAETRY2V4i2qZc+orKLxvWzGUBiqBW8= diff --git a/index.html b/index.html new file mode 100644 index 0000000..d548c2c --- /dev/null +++ b/index.html @@ -0,0 +1 @@ +
f?q(e,c,i,!0,!1,p):T(t,n,o,c,i,s,u,a,p)},V=(e,t,n,o,c,i,s,u,a)=>{let l=0;const f=t.length;let p=e.length-1,d=f-1;while(l<=p&&l<=d){const r=e[l],o=t[l]=a?nr(t[l]):tr(t[l]);if(!Gn(r,o))break;g(r,o,n,null,c,i,s,u,a),l++}while(l<=p&&l<=d){const r=e[p],o=t[d]=a?nr(t[d]):tr(t[d]);if(!Gn(r,o))break;g(r,o,n,null,c,i,s,u,a),p--,d--}if(l>p){if(l<=d){const e=d+1,r=e