Rename github.com/sorenisanerd/gotty to gitea.xs0.ru/forks/gotty
Some checks failed
Some checks failed
This commit is contained in:
@@ -4,7 +4,7 @@ import (
|
|||||||
"syscall"
|
"syscall"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/sorenisanerd/gotty/server"
|
"gitea.xs0.ru/forks/gotty/server"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Options struct {
|
type Options struct {
|
||||||
|
|||||||
8
main.go
8
main.go
@@ -12,10 +12,10 @@ import (
|
|||||||
|
|
||||||
cli "github.com/urfave/cli/v2"
|
cli "github.com/urfave/cli/v2"
|
||||||
|
|
||||||
"github.com/sorenisanerd/gotty/backend/localcommand"
|
"gitea.xs0.ru/forks/gotty/backend/localcommand"
|
||||||
"github.com/sorenisanerd/gotty/pkg/homedir"
|
"gitea.xs0.ru/forks/gotty/pkg/homedir"
|
||||||
"github.com/sorenisanerd/gotty/server"
|
"gitea.xs0.ru/forks/gotty/server"
|
||||||
"github.com/sorenisanerd/gotty/utils"
|
"gitea.xs0.ru/forks/gotty/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ import (
|
|||||||
"github.com/gorilla/websocket"
|
"github.com/gorilla/websocket"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
|
|
||||||
"github.com/sorenisanerd/gotty/webtty"
|
"gitea.xs0.ru/forks/gotty/webtty"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (server *Server) generateHandleWS(ctx context.Context, cancel context.CancelFunc, counter *counter) http.HandlerFunc {
|
func (server *Server) generateHandleWS(ctx context.Context, cancel context.CancelFunc, counter *counter) http.HandlerFunc {
|
||||||
|
|||||||
@@ -19,10 +19,10 @@ import (
|
|||||||
"github.com/gorilla/websocket"
|
"github.com/gorilla/websocket"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
|
|
||||||
"github.com/sorenisanerd/gotty/bindata"
|
"gitea.xs0.ru/forks/gotty/bindata"
|
||||||
"github.com/sorenisanerd/gotty/pkg/homedir"
|
"gitea.xs0.ru/forks/gotty/pkg/homedir"
|
||||||
"github.com/sorenisanerd/gotty/pkg/randomstring"
|
"gitea.xs0.ru/forks/gotty/pkg/randomstring"
|
||||||
"github.com/sorenisanerd/gotty/webtty"
|
"gitea.xs0.ru/forks/gotty/webtty"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Server provides a webtty HTTP endpoint.
|
// Server provides a webtty HTTP endpoint.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package server
|
package server
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/sorenisanerd/gotty/webtty"
|
"gitea.xs0.ru/forks/gotty/webtty"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Slave is webtty.Slave with some additional methods.
|
// Slave is webtty.Slave with some additional methods.
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import (
|
|||||||
"github.com/urfave/cli/v2"
|
"github.com/urfave/cli/v2"
|
||||||
"github.com/yudai/hcl"
|
"github.com/yudai/hcl"
|
||||||
|
|
||||||
"github.com/sorenisanerd/gotty/pkg/homedir"
|
"gitea.xs0.ru/forks/gotty/pkg/homedir"
|
||||||
)
|
)
|
||||||
|
|
||||||
func GenerateFlags(options ...interface{}) (flags []cli.Flag, mappings map[string]string, err error) {
|
func GenerateFlags(options ...interface{}) (flags []cli.Flag, mappings map[string]string, err error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user