Rename module

This commit is contained in:
Will Owens 2022-02-26 17:32:04 -05:00
parent 179f2face2
commit ef511da787
7 changed files with 11 additions and 13 deletions

View file

@ -4,7 +4,7 @@ import (
"syscall" "syscall"
"time" "time"
"github.com/yudai/gotty/server" "github.com/ghthor/gotty/server"
) )
type Options struct { type Options struct {

2
go.mod
View file

@ -17,5 +17,3 @@ require (
github.com/hashicorp/go-multierror v0.0.0-20150608033521-56912fb08d85 // indirect github.com/hashicorp/go-multierror v0.0.0-20150608033521-56912fb08d85 // indirect
github.com/stretchr/testify v1.7.0 // indirect github.com/stretchr/testify v1.7.0 // indirect
) )
replace github.com/yudai/gotty => ./

View file

@ -11,10 +11,10 @@ import (
"github.com/codegangsta/cli" "github.com/codegangsta/cli"
"github.com/yudai/gotty/backend/localcommand" "github.com/ghthor/gotty/backend/localcommand"
"github.com/yudai/gotty/pkg/homedir" "github.com/ghthor/gotty/pkg/homedir"
"github.com/yudai/gotty/server" "github.com/ghthor/gotty/server"
"github.com/yudai/gotty/utils" "github.com/ghthor/gotty/utils"
) )
func main() { func main() {

View file

@ -13,7 +13,7 @@ import (
"github.com/gorilla/websocket" "github.com/gorilla/websocket"
"github.com/pkg/errors" "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 { func (server *Server) generateHandleWS(ctx context.Context, cancel context.CancelFunc, counter *counter) http.HandlerFunc {

View file

@ -18,9 +18,9 @@ import (
"github.com/gorilla/websocket" "github.com/gorilla/websocket"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/yudai/gotty/pkg/homedir" "github.com/ghthor/gotty/pkg/homedir"
"github.com/yudai/gotty/pkg/randomstring" "github.com/ghthor/gotty/pkg/randomstring"
"github.com/yudai/gotty/webtty" "github.com/ghthor/gotty/webtty"
) )
// Server provides a webtty HTTP endpoint. // Server provides a webtty HTTP endpoint.

View file

@ -1,7 +1,7 @@
package server package server
import ( import (
"github.com/yudai/gotty/webtty" "github.com/ghthor/gotty/webtty"
) )
// Slave is webtty.Slave with some additional methods. // Slave is webtty.Slave with some additional methods.

View file

@ -11,7 +11,7 @@ import (
"github.com/fatih/structs" "github.com/fatih/structs"
"github.com/yudai/hcl" "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) { func GenerateFlags(options ...interface{}) (flags []cli.Flag, mappings map[string]string, err error) {