mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-22 16:48:23 +01:00
update go.mod and import paths for waveshell
This commit is contained in:
parent
a4c0128c89
commit
397a0faa88
@ -1,4 +1,4 @@
|
|||||||
module github.com/commandlinedev/apishell
|
module github.com/wavetermdev/waveterm/waveshell
|
||||||
|
|
||||||
go 1.18
|
go 1.18
|
||||||
|
|
||||||
|
@ -9,10 +9,10 @@ import (
|
|||||||
"syscall"
|
"syscall"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/commandlinedev/apishell/pkg/base"
|
"github.com/wavetermdev/waveterm/waveshell/pkg/base"
|
||||||
"github.com/commandlinedev/apishell/pkg/packet"
|
"github.com/wavetermdev/waveterm/waveshell/pkg/packet"
|
||||||
"github.com/commandlinedev/apishell/pkg/server"
|
"github.com/wavetermdev/waveterm/waveshell/pkg/server"
|
||||||
"github.com/commandlinedev/apishell/pkg/shexec"
|
"github.com/wavetermdev/waveterm/waveshell/pkg/shexec"
|
||||||
"golang.org/x/sys/unix"
|
"golang.org/x/sys/unix"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -10,8 +10,8 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/fsnotify/fsnotify"
|
"github.com/fsnotify/fsnotify"
|
||||||
"github.com/commandlinedev/apishell/pkg/base"
|
"github.com/wavetermdev/waveterm/waveshell/pkg/base"
|
||||||
"github.com/commandlinedev/apishell/pkg/packet"
|
"github.com/wavetermdev/waveterm/waveshell/pkg/packet"
|
||||||
)
|
)
|
||||||
|
|
||||||
const MaxDataBytes = 4096
|
const MaxDataBytes = 4096
|
||||||
|
@ -4,7 +4,7 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/commandlinedev/apishell/pkg/packet"
|
"github.com/wavetermdev/waveterm/waveshell/pkg/packet"
|
||||||
)
|
)
|
||||||
|
|
||||||
type FdReader struct {
|
type FdReader struct {
|
||||||
|
@ -7,8 +7,8 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/commandlinedev/apishell/pkg/base"
|
"github.com/wavetermdev/waveterm/waveshell/pkg/base"
|
||||||
"github.com/commandlinedev/apishell/pkg/packet"
|
"github.com/wavetermdev/waveterm/waveshell/pkg/packet"
|
||||||
)
|
)
|
||||||
|
|
||||||
const ReadBufSize = 128 * 1024
|
const ReadBufSize = 128 * 1024
|
||||||
|
@ -12,7 +12,7 @@ import (
|
|||||||
"reflect"
|
"reflect"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/commandlinedev/apishell/pkg/base"
|
"github.com/wavetermdev/waveterm/waveshell/pkg/base"
|
||||||
)
|
)
|
||||||
|
|
||||||
// single : <init, >run, >cmddata, >cmddone, <cmdstart, <>data, <>dataack, <cmddone
|
// single : <init, >run, >cmddata, >cmddone, <cmdstart, <>data, <>dataack, <cmddone
|
||||||
|
@ -7,8 +7,8 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/commandlinedev/apishell/pkg/binpack"
|
"github.com/wavetermdev/waveterm/waveshell/pkg/binpack"
|
||||||
"github.com/commandlinedev/apishell/pkg/statediff"
|
"github.com/wavetermdev/waveterm/waveshell/pkg/statediff"
|
||||||
)
|
)
|
||||||
|
|
||||||
const ShellStatePackVersion = 0
|
const ShellStatePackVersion = 0
|
||||||
|
@ -15,9 +15,9 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/alessio/shellescape"
|
"github.com/alessio/shellescape"
|
||||||
"github.com/commandlinedev/apishell/pkg/base"
|
"github.com/wavetermdev/waveterm/waveshell/pkg/base"
|
||||||
"github.com/commandlinedev/apishell/pkg/packet"
|
"github.com/wavetermdev/waveterm/waveshell/pkg/packet"
|
||||||
"github.com/commandlinedev/apishell/pkg/shexec"
|
"github.com/wavetermdev/waveterm/waveshell/pkg/shexec"
|
||||||
)
|
)
|
||||||
|
|
||||||
const MaxFileDataPacketSize = 16 * 1024
|
const MaxFileDataPacketSize = 16 * 1024
|
||||||
|
@ -7,8 +7,8 @@ import (
|
|||||||
"os/exec"
|
"os/exec"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/commandlinedev/apishell/pkg/base"
|
"github.com/wavetermdev/waveterm/waveshell/pkg/base"
|
||||||
"github.com/commandlinedev/apishell/pkg/packet"
|
"github.com/wavetermdev/waveterm/waveshell/pkg/packet"
|
||||||
"golang.org/x/mod/semver"
|
"golang.org/x/mod/semver"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -9,9 +9,9 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/alessio/shellescape"
|
"github.com/alessio/shellescape"
|
||||||
"github.com/commandlinedev/apishell/pkg/packet"
|
"github.com/wavetermdev/waveterm/waveshell/pkg/packet"
|
||||||
"github.com/commandlinedev/apishell/pkg/simpleexpand"
|
"github.com/wavetermdev/waveterm/waveshell/pkg/simpleexpand"
|
||||||
"github.com/commandlinedev/apishell/pkg/statediff"
|
"github.com/wavetermdev/waveterm/waveshell/pkg/statediff"
|
||||||
"mvdan.cc/sh/v3/expand"
|
"mvdan.cc/sh/v3/expand"
|
||||||
"mvdan.cc/sh/v3/syntax"
|
"mvdan.cc/sh/v3/syntax"
|
||||||
)
|
)
|
||||||
|
@ -18,10 +18,10 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/alessio/shellescape"
|
"github.com/alessio/shellescape"
|
||||||
"github.com/commandlinedev/apishell/pkg/base"
|
"github.com/wavetermdev/waveterm/waveshell/pkg/base"
|
||||||
"github.com/commandlinedev/apishell/pkg/cirfile"
|
"github.com/wavetermdev/waveterm/waveshell/pkg/cirfile"
|
||||||
"github.com/commandlinedev/apishell/pkg/mpio"
|
"github.com/wavetermdev/waveterm/waveshell/pkg/mpio"
|
||||||
"github.com/commandlinedev/apishell/pkg/packet"
|
"github.com/wavetermdev/waveterm/waveshell/pkg/packet"
|
||||||
"github.com/creack/pty"
|
"github.com/creack/pty"
|
||||||
"golang.org/x/mod/semver"
|
"golang.org/x/mod/semver"
|
||||||
"golang.org/x/sys/unix"
|
"golang.org/x/sys/unix"
|
||||||
|
Loading…
Reference in New Issue
Block a user