mirror of
https://github.com/yudai/gotty.git
synced 2025-12-24 11:20:13 +01:00
Rename module
This commit is contained in:
parent
179f2face2
commit
ef511da787
7 changed files with 11 additions and 13 deletions
|
|
@ -4,7 +4,7 @@ import (
|
|||
"syscall"
|
||||
"time"
|
||||
|
||||
"github.com/yudai/gotty/server"
|
||||
"github.com/ghthor/gotty/server"
|
||||
)
|
||||
|
||||
type Options struct {
|
||||
|
|
|
|||
2
go.mod
2
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 => ./
|
||||
|
|
|
|||
8
main.go
8
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() {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue