From ef511da78760f9204bf9456767e792e0fed437bc Mon Sep 17 00:00:00 2001 From: Will Owens Date: Sat, 26 Feb 2022 17:32:04 -0500 Subject: [PATCH] Rename module --- backend/localcommand/factory.go | 2 +- go.mod | 2 -- main.go | 8 ++++---- server/handlers.go | 2 +- server/server.go | 6 +++--- server/slave.go | 2 +- utils/flags.go | 2 +- 7 files changed, 11 insertions(+), 13 deletions(-) diff --git a/backend/localcommand/factory.go b/backend/localcommand/factory.go index 11810ed..5a1813c 100644 --- a/backend/localcommand/factory.go +++ b/backend/localcommand/factory.go @@ -4,7 +4,7 @@ import ( "syscall" "time" - "github.com/yudai/gotty/server" + "github.com/ghthor/gotty/server" ) type Options struct { diff --git a/go.mod b/go.mod index 2fb4736..64ac883 100644 --- a/go.mod +++ b/go.mod @@ -17,5 +17,3 @@ require ( github.com/hashicorp/go-multierror v0.0.0-20150608033521-56912fb08d85 // indirect github.com/stretchr/testify v1.7.0 // indirect ) - -replace github.com/yudai/gotty => ./ diff --git a/main.go b/main.go index b6290be..fe074f7 100644 --- a/main.go +++ b/main.go @@ -11,10 +11,10 @@ import ( "github.com/codegangsta/cli" - "github.com/yudai/gotty/backend/localcommand" - "github.com/yudai/gotty/pkg/homedir" - "github.com/yudai/gotty/server" - "github.com/yudai/gotty/utils" + "github.com/ghthor/gotty/backend/localcommand" + "github.com/ghthor/gotty/pkg/homedir" + "github.com/ghthor/gotty/server" + "github.com/ghthor/gotty/utils" ) func main() { diff --git a/server/handlers.go b/server/handlers.go index f1a2f9b..7aa9b57 100644 --- a/server/handlers.go +++ b/server/handlers.go @@ -13,7 +13,7 @@ import ( "github.com/gorilla/websocket" "github.com/pkg/errors" - "github.com/yudai/gotty/webtty" + "github.com/ghthor/gotty/webtty" ) func (server *Server) generateHandleWS(ctx context.Context, cancel context.CancelFunc, counter *counter) http.HandlerFunc { diff --git a/server/server.go b/server/server.go index 6411e71..7536e32 100644 --- a/server/server.go +++ b/server/server.go @@ -18,9 +18,9 @@ import ( "github.com/gorilla/websocket" "github.com/pkg/errors" - "github.com/yudai/gotty/pkg/homedir" - "github.com/yudai/gotty/pkg/randomstring" - "github.com/yudai/gotty/webtty" + "github.com/ghthor/gotty/pkg/homedir" + "github.com/ghthor/gotty/pkg/randomstring" + "github.com/ghthor/gotty/webtty" ) // Server provides a webtty HTTP endpoint. diff --git a/server/slave.go b/server/slave.go index 77d0973..d4eabde 100644 --- a/server/slave.go +++ b/server/slave.go @@ -1,7 +1,7 @@ package server import ( - "github.com/yudai/gotty/webtty" + "github.com/ghthor/gotty/webtty" ) // Slave is webtty.Slave with some additional methods. diff --git a/utils/flags.go b/utils/flags.go index b5c66b9..a216dd5 100644 --- a/utils/flags.go +++ b/utils/flags.go @@ -11,7 +11,7 @@ import ( "github.com/fatih/structs" "github.com/yudai/hcl" - "github.com/yudai/gotty/pkg/homedir" + "github.com/ghthor/gotty/pkg/homedir" ) func GenerateFlags(options ...interface{}) (flags []cli.Flag, mappings map[string]string, err error) {