mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-13 09:57:51 +08:00
newedit/cli* -> cli/cli*
This commit is contained in:
parent
f2d661fc04
commit
2a12efed08
|
@ -6,8 +6,8 @@ import (
|
|||
"sync"
|
||||
"syscall"
|
||||
|
||||
clitypes "github.com/elves/elvish/cli/clitypes"
|
||||
"github.com/elves/elvish/edit/tty"
|
||||
clitypes "github.com/elves/elvish/newedit/clitypes"
|
||||
"github.com/elves/elvish/styled"
|
||||
"github.com/elves/elvish/sys"
|
||||
)
|
|
@ -3,9 +3,9 @@ package clicore
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/elves/elvish/cli/clitypes"
|
||||
"github.com/elves/elvish/edit/tty"
|
||||
"github.com/elves/elvish/edit/ui"
|
||||
"github.com/elves/elvish/newedit/clitypes"
|
||||
)
|
||||
|
||||
// A Mode implementation useful in tests.
|
|
@ -1,8 +1,8 @@
|
|||
package clicore
|
||||
|
||||
import (
|
||||
"github.com/elves/elvish/cli/clitypes"
|
||||
"github.com/elves/elvish/edit/ui"
|
||||
"github.com/elves/elvish/newedit/clitypes"
|
||||
"github.com/elves/elvish/styled"
|
||||
"github.com/elves/elvish/util"
|
||||
)
|
|
@ -4,8 +4,8 @@ import (
|
|||
"errors"
|
||||
"testing"
|
||||
|
||||
"github.com/elves/elvish/cli/clitypes"
|
||||
"github.com/elves/elvish/edit/ui"
|
||||
"github.com/elves/elvish/newedit/clitypes"
|
||||
"github.com/elves/elvish/styled"
|
||||
"github.com/elves/elvish/tt"
|
||||
)
|
|
@ -1,8 +1,8 @@
|
|||
package clicore
|
||||
|
||||
import (
|
||||
"github.com/elves/elvish/newedit/clitypes"
|
||||
"github.com/elves/elvish/newedit/cliutil"
|
||||
"github.com/elves/elvish/cli/clitypes"
|
||||
"github.com/elves/elvish/cli/cliutil"
|
||||
)
|
||||
|
||||
// Returns the first non-nil value. If all are nil, return utils.BasicMode{}
|
|
@ -3,7 +3,7 @@ package cliutil
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/elves/elvish/newedit/clitypes"
|
||||
"github.com/elves/elvish/cli/clitypes"
|
||||
)
|
||||
|
||||
// ActionError is like HandlerAction with an Error method. It is useful as a
|
|
@ -3,8 +3,8 @@ package cliutil
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/elves/elvish/cli/clitypes"
|
||||
"github.com/elves/elvish/eval/vals"
|
||||
"github.com/elves/elvish/newedit/clitypes"
|
||||
"github.com/elves/elvish/tt"
|
||||
)
|
||||
|
|
@ -4,9 +4,9 @@ import (
|
|||
"unicode"
|
||||
"unicode/utf8"
|
||||
|
||||
"github.com/elves/elvish/cli/clitypes"
|
||||
"github.com/elves/elvish/edit/tty"
|
||||
"github.com/elves/elvish/edit/ui"
|
||||
"github.com/elves/elvish/newedit/clitypes"
|
||||
)
|
||||
|
||||
// BasicMode is a basic Mode implementation.
|
|
@ -5,9 +5,9 @@ import (
|
|||
"reflect"
|
||||
"testing"
|
||||
|
||||
"github.com/elves/elvish/cli/clitypes"
|
||||
"github.com/elves/elvish/edit/tty"
|
||||
"github.com/elves/elvish/edit/ui"
|
||||
"github.com/elves/elvish/newedit/clitypes"
|
||||
"github.com/elves/elvish/tt"
|
||||
)
|
||||
|
|
@ -6,12 +6,12 @@ import (
|
|||
"os"
|
||||
"sync"
|
||||
|
||||
"github.com/elves/elvish/cli/clitypes"
|
||||
"github.com/elves/elvish/cli/cliutil"
|
||||
"github.com/elves/elvish/edit/eddefs"
|
||||
"github.com/elves/elvish/edit/ui"
|
||||
"github.com/elves/elvish/eval"
|
||||
"github.com/elves/elvish/eval/vals"
|
||||
"github.com/elves/elvish/newedit/clitypes"
|
||||
"github.com/elves/elvish/newedit/cliutil"
|
||||
)
|
||||
|
||||
// TODO(xiaq): Move the implementation into this package.
|
||||
|
|
|
@ -5,10 +5,10 @@ import (
|
|||
"reflect"
|
||||
"testing"
|
||||
|
||||
"github.com/elves/elvish/cli/clitypes"
|
||||
"github.com/elves/elvish/cli/cliutil"
|
||||
"github.com/elves/elvish/edit/ui"
|
||||
"github.com/elves/elvish/eval"
|
||||
"github.com/elves/elvish/newedit/clitypes"
|
||||
"github.com/elves/elvish/newedit/cliutil"
|
||||
)
|
||||
|
||||
func TestKeyHandlerFromBinding_CallsBinding(t *testing.T) {
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"unicode"
|
||||
"unicode/utf8"
|
||||
|
||||
"github.com/elves/elvish/newedit/clitypes"
|
||||
"github.com/elves/elvish/cli/clitypes"
|
||||
"github.com/elves/elvish/util"
|
||||
)
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ package newedit
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/elves/elvish/newedit/clitypes"
|
||||
"github.com/elves/elvish/cli/clitypes"
|
||||
"github.com/elves/elvish/tt"
|
||||
)
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
package newedit
|
||||
|
||||
import (
|
||||
"github.com/elves/elvish/newedit/clitypes"
|
||||
"github.com/elves/elvish/newedit/cliutil"
|
||||
"github.com/elves/elvish/cli/clitypes"
|
||||
"github.com/elves/elvish/cli/cliutil"
|
||||
)
|
||||
|
||||
//elvdoc:fn exit-binding
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
package newedit
|
||||
|
||||
import (
|
||||
"github.com/elves/elvish/cli/clitypes"
|
||||
"github.com/elves/elvish/edit/eddefs"
|
||||
"github.com/elves/elvish/newedit/clitypes"
|
||||
)
|
||||
|
||||
//elvdoc:fn binding-map
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package newedit
|
||||
|
||||
import "github.com/elves/elvish/newedit/clitypes"
|
||||
import "github.com/elves/elvish/cli/clitypes"
|
||||
|
||||
// The editor's dependencies are not concrete implementations, but interfaces.
|
||||
// This file defines the interfaces for those dependencies as well as fake
|
||||
|
|
|
@ -4,10 +4,10 @@ import (
|
|||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/elves/elvish/cli/clicore"
|
||||
"github.com/elves/elvish/edit/history/histutil"
|
||||
"github.com/elves/elvish/eval"
|
||||
"github.com/elves/elvish/eval/vars"
|
||||
"github.com/elves/elvish/newedit/clicore"
|
||||
"github.com/elves/elvish/newedit/highlight"
|
||||
"github.com/elves/elvish/parse"
|
||||
"github.com/elves/elvish/store/storedefs"
|
||||
|
|
|
@ -4,8 +4,8 @@ import (
|
|||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/elves/elvish/cli/clitypes"
|
||||
"github.com/elves/elvish/edit/ui"
|
||||
"github.com/elves/elvish/newedit/clitypes"
|
||||
"github.com/elves/elvish/newedit/listing"
|
||||
"github.com/elves/elvish/styled"
|
||||
)
|
||||
|
|
|
@ -3,7 +3,7 @@ package histlist
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/elves/elvish/newedit/clitypes"
|
||||
"github.com/elves/elvish/cli/clitypes"
|
||||
"github.com/elves/elvish/newedit/listing"
|
||||
"github.com/elves/elvish/styled"
|
||||
"github.com/elves/elvish/tt"
|
||||
|
|
|
@ -6,9 +6,9 @@ import (
|
|||
|
||||
"github.com/elves/elvish/edit/ui"
|
||||
|
||||
"github.com/elves/elvish/cli/clitypes"
|
||||
"github.com/elves/elvish/edit/history/histutil"
|
||||
"github.com/elves/elvish/eval"
|
||||
"github.com/elves/elvish/newedit/clitypes"
|
||||
"github.com/elves/elvish/newedit/listing"
|
||||
)
|
||||
|
||||
|
|
|
@ -7,10 +7,10 @@ import (
|
|||
"strings"
|
||||
"sync"
|
||||
|
||||
"github.com/elves/elvish/cli/clitypes"
|
||||
"github.com/elves/elvish/cli/cliutil"
|
||||
"github.com/elves/elvish/edit/tty"
|
||||
"github.com/elves/elvish/edit/ui"
|
||||
"github.com/elves/elvish/newedit/clitypes"
|
||||
"github.com/elves/elvish/newedit/cliutil"
|
||||
"github.com/elves/elvish/parse"
|
||||
)
|
||||
|
||||
|
|
|
@ -4,9 +4,9 @@ import (
|
|||
"reflect"
|
||||
"testing"
|
||||
|
||||
"github.com/elves/elvish/cli/clitypes"
|
||||
"github.com/elves/elvish/edit/tty"
|
||||
"github.com/elves/elvish/edit/ui"
|
||||
"github.com/elves/elvish/newedit/clitypes"
|
||||
"github.com/elves/elvish/parse"
|
||||
)
|
||||
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
package newedit
|
||||
|
||||
import (
|
||||
"github.com/elves/elvish/cli/clitypes"
|
||||
"github.com/elves/elvish/cli/cliutil"
|
||||
"github.com/elves/elvish/edit/tty"
|
||||
"github.com/elves/elvish/eval"
|
||||
"github.com/elves/elvish/eval/vals"
|
||||
"github.com/elves/elvish/eval/vars"
|
||||
"github.com/elves/elvish/newedit/clitypes"
|
||||
"github.com/elves/elvish/newedit/cliutil"
|
||||
"github.com/elves/elvish/newedit/insert"
|
||||
"github.com/xiaq/persistent/hashmap"
|
||||
)
|
||||
|
|
|
@ -4,11 +4,11 @@ import (
|
|||
"reflect"
|
||||
"testing"
|
||||
|
||||
"github.com/elves/elvish/cli/clitypes"
|
||||
"github.com/elves/elvish/edit/tty"
|
||||
"github.com/elves/elvish/edit/ui"
|
||||
"github.com/elves/elvish/eval"
|
||||
"github.com/elves/elvish/eval/vals"
|
||||
"github.com/elves/elvish/newedit/clitypes"
|
||||
)
|
||||
|
||||
var abbrData = [][2]string{{"xx", "xx full"}, {"yy", "yy full"}}
|
||||
|
|
|
@ -5,8 +5,8 @@ import (
|
|||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/elves/elvish/cli/clitypes"
|
||||
"github.com/elves/elvish/edit/ui"
|
||||
"github.com/elves/elvish/newedit/clitypes"
|
||||
"github.com/elves/elvish/newedit/listing"
|
||||
"github.com/elves/elvish/styled"
|
||||
)
|
||||
|
|
|
@ -4,9 +4,9 @@ import (
|
|||
"reflect"
|
||||
"testing"
|
||||
|
||||
"github.com/elves/elvish/cli/clitypes"
|
||||
"github.com/elves/elvish/edit/ui"
|
||||
"github.com/elves/elvish/eval"
|
||||
"github.com/elves/elvish/newedit/clitypes"
|
||||
"github.com/elves/elvish/newedit/listing"
|
||||
)
|
||||
|
||||
|
|
|
@ -18,9 +18,9 @@ import (
|
|||
"unicode"
|
||||
"unicode/utf8"
|
||||
|
||||
"github.com/elves/elvish/cli/clitypes"
|
||||
"github.com/elves/elvish/edit/tty"
|
||||
"github.com/elves/elvish/edit/ui"
|
||||
"github.com/elves/elvish/newedit/clitypes"
|
||||
"github.com/elves/elvish/styled"
|
||||
)
|
||||
|
||||
|
|
|
@ -5,9 +5,9 @@ import (
|
|||
"strconv"
|
||||
"testing"
|
||||
|
||||
"github.com/elves/elvish/cli/clitypes"
|
||||
"github.com/elves/elvish/edit/tty"
|
||||
"github.com/elves/elvish/edit/ui"
|
||||
"github.com/elves/elvish/newedit/clitypes"
|
||||
"github.com/elves/elvish/styled"
|
||||
"github.com/elves/elvish/tt"
|
||||
)
|
||||
|
|
|
@ -4,8 +4,8 @@ import (
|
|||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/elves/elvish/cli/clitypes"
|
||||
"github.com/elves/elvish/edit/ui"
|
||||
"github.com/elves/elvish/newedit/clitypes"
|
||||
"github.com/elves/elvish/newedit/listing"
|
||||
"github.com/elves/elvish/store/storedefs"
|
||||
"github.com/elves/elvish/styled"
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"reflect"
|
||||
"testing"
|
||||
|
||||
"github.com/elves/elvish/newedit/clitypes"
|
||||
"github.com/elves/elvish/cli/clitypes"
|
||||
"github.com/elves/elvish/newedit/listing"
|
||||
"github.com/elves/elvish/store/storedefs"
|
||||
"github.com/elves/elvish/styled"
|
||||
|
|
|
@ -6,8 +6,8 @@ import (
|
|||
|
||||
"github.com/elves/elvish/edit/ui"
|
||||
|
||||
"github.com/elves/elvish/cli/clitypes"
|
||||
"github.com/elves/elvish/eval"
|
||||
"github.com/elves/elvish/newedit/clitypes"
|
||||
"github.com/elves/elvish/newedit/listing"
|
||||
"github.com/elves/elvish/store/storedefs"
|
||||
)
|
||||
|
|
|
@ -7,10 +7,10 @@ import (
|
|||
"os/user"
|
||||
"sync"
|
||||
|
||||
"github.com/elves/elvish/cli/clicore"
|
||||
"github.com/elves/elvish/eval"
|
||||
"github.com/elves/elvish/eval/vals"
|
||||
"github.com/elves/elvish/eval/vars"
|
||||
"github.com/elves/elvish/newedit/clicore"
|
||||
"github.com/elves/elvish/newedit/prompt"
|
||||
"github.com/elves/elvish/styled"
|
||||
"github.com/elves/elvish/util"
|
||||
|
|
Loading…
Reference in New Issue
Block a user