newedit/cli* -> cli/cli*

This commit is contained in:
Qi Xiao 2019-04-25 21:33:17 +01:00
parent f2d661fc04
commit 2a12efed08
50 changed files with 38 additions and 38 deletions

View File

@ -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"
)

View File

@ -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.

View File

@ -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"
)

View File

@ -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"
)

View File

@ -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{}

View File

@ -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

View File

@ -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"
)

View File

@ -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.

View File

@ -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"
)

View File

@ -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.

View File

@ -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) {

View File

@ -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"
)

View File

@ -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"
)

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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"

View File

@ -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"
)

View File

@ -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"

View File

@ -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"
)

View File

@ -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"
)

View File

@ -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"
)

View File

@ -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"
)

View File

@ -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"}}

View File

@ -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"
)

View File

@ -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"
)

View File

@ -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"
)

View File

@ -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"
)

View File

@ -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"

View File

@ -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"

View File

@ -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"
)

View File

@ -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"