mirror of
https://github.com/yudai/gotty.git
synced 2026-03-04 04:40:17 +01:00
Bump module major version to v2
This commit is contained in:
parent
0e16740b7d
commit
ab9ea2b95f
7 changed files with 12 additions and 12 deletions
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"syscall"
|
"syscall"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/ghthor/gotty/server"
|
"github.com/ghthor/gotty/v2/server"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Options struct {
|
type Options struct {
|
||||||
|
|
|
||||||
2
go.mod
2
go.mod
|
|
@ -1,4 +1,4 @@
|
||||||
module github.com/ghthor/gotty
|
module github.com/ghthor/gotty/v2
|
||||||
|
|
||||||
go 1.17
|
go 1.17
|
||||||
|
|
||||||
|
|
|
||||||
8
main.go
8
main.go
|
|
@ -11,10 +11,10 @@ import (
|
||||||
|
|
||||||
"github.com/urfave/cli"
|
"github.com/urfave/cli"
|
||||||
|
|
||||||
"github.com/ghthor/gotty/backend/localcommand"
|
"github.com/ghthor/gotty/v2/backend/localcommand"
|
||||||
"github.com/ghthor/gotty/pkg/homedir"
|
"github.com/ghthor/gotty/v2/pkg/homedir"
|
||||||
"github.com/ghthor/gotty/server"
|
"github.com/ghthor/gotty/v2/server"
|
||||||
"github.com/ghthor/gotty/utils"
|
"github.com/ghthor/gotty/v2/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ import (
|
||||||
"github.com/gorilla/websocket"
|
"github.com/gorilla/websocket"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
|
|
||||||
"github.com/ghthor/gotty/webtty"
|
"github.com/ghthor/gotty/v2/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 {
|
||||||
|
|
|
||||||
|
|
@ -18,9 +18,9 @@ import (
|
||||||
"github.com/gorilla/websocket"
|
"github.com/gorilla/websocket"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
|
|
||||||
"github.com/ghthor/gotty/pkg/homedir"
|
"github.com/ghthor/gotty/v2/pkg/homedir"
|
||||||
"github.com/ghthor/gotty/pkg/randomstring"
|
"github.com/ghthor/gotty/v2/pkg/randomstring"
|
||||||
"github.com/ghthor/gotty/webtty"
|
"github.com/ghthor/gotty/v2/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/ghthor/gotty/webtty"
|
"github.com/ghthor/gotty/v2/webtty"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Slave is webtty.Slave with some additional methods.
|
// Slave is webtty.Slave with some additional methods.
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ import (
|
||||||
"github.com/fatih/structs"
|
"github.com/fatih/structs"
|
||||||
"github.com/yudai/hcl"
|
"github.com/yudai/hcl"
|
||||||
|
|
||||||
"github.com/ghthor/gotty/pkg/homedir"
|
"github.com/ghthor/gotty/v2/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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue