fix repos

This commit is contained in:
re 2022-12-12 16:55:00 +03:00
parent 7f93d88cd5
commit 295ca315c5
11 changed files with 41 additions and 43 deletions

View File

@ -2,7 +2,7 @@ language: go
go: go:
- 1.x - 1.x
script: script:
- GOOS=windows go install github.com/chzyer/readline/example/... - GOOS=windows go install git.internal/re/readline/example/...
- GOOS=linux go install github.com/chzyer/readline/example/... - GOOS=linux go install git.internal/re/readline/example/...
- GOOS=darwin go install github.com/chzyer/readline/example/... - GOOS=darwin go install git.internal/re/readline/example/...
- go test -race -v - go test -race -v

View File

@ -19,12 +19,12 @@
### 1.2 - 2016-03-05 ### 1.2 - 2016-03-05
* Add a demo for checking password strength [example/readline-pass-strength](https://github.com/chzyer/readline/blob/master/example/readline-pass-strength/readline-pass-strength.go), , written by [@sahib](https://github.com/sahib) * Add a demo for checking password strength [example/readline-pass-strength](https://git.internal/re/readline/blob/master/example/readline-pass-strength/readline-pass-strength.go), , written by [@sahib](https://github.com/sahib)
* [#23][23], support stdin remapping * [#23][23], support stdin remapping
* [#27][27], add a `UniqueEditLine` to `Config`, which will erase the editing line after user submited it, usually use in IM. * [#27][27], add a `UniqueEditLine` to `Config`, which will erase the editing line after user submited it, usually use in IM.
* Add a demo for multiline [example/readline-multiline](https://github.com/chzyer/readline/blob/master/example/readline-multiline/readline-multiline.go) which can submit one SQL by multiple lines. * Add a demo for multiline [example/readline-multiline](https://git.internal/re/readline/blob/master/example/readline-multiline/readline-multiline.go) which can submit one SQL by multiple lines.
* Supports performs even stdin/stdout is not a tty. * Supports performs even stdin/stdout is not a tty.
* Add a new simple apis for single instance, check by [here](https://github.com/chzyer/readline/blob/master/std.go). It need to save history manually if using this api. * Add a new simple apis for single instance, check by [here](https://git.internal/re/readline/blob/master/std.go). It need to save history manually if using this api.
* [#28][28], fixes the history is not working as expected. * [#28][28], fixes the history is not working as expected.
* [#33][33], vim mode now support `c`, `d`, `x (delete character)`, `r (replace character)` * [#33][33], vim mode now support `c`, `d`, `x (delete character)`, `r (replace character)`
@ -42,17 +42,17 @@
* Initial public release. * Initial public release.
[12]: https://github.com/chzyer/readline/pull/12 [12]: https://git.internal/re/readline/pull/12
[17]: https://github.com/chzyer/readline/pull/17 [17]: https://git.internal/re/readline/pull/17
[23]: https://github.com/chzyer/readline/pull/23 [23]: https://git.internal/re/readline/pull/23
[27]: https://github.com/chzyer/readline/pull/27 [27]: https://git.internal/re/readline/pull/27
[28]: https://github.com/chzyer/readline/pull/28 [28]: https://git.internal/re/readline/pull/28
[33]: https://github.com/chzyer/readline/pull/33 [33]: https://git.internal/re/readline/pull/33
[38]: https://github.com/chzyer/readline/pull/38 [38]: https://git.internal/re/readline/pull/38
[42]: https://github.com/chzyer/readline/pull/42 [42]: https://git.internal/re/readline/pull/42
[43]: https://github.com/chzyer/readline/pull/43 [43]: https://git.internal/re/readline/pull/43
[46]: https://github.com/chzyer/readline/pull/46 [46]: https://git.internal/re/readline/pull/46
[48]: https://github.com/chzyer/readline/pull/48 [48]: https://git.internal/re/readline/pull/48
[49]: https://github.com/chzyer/readline/pull/49 [49]: https://git.internal/re/readline/pull/49
[53]: https://github.com/chzyer/readline/pull/53 [53]: https://git.internal/re/readline/pull/53
[60]: https://github.com/chzyer/readline/pull/60 [60]: https://git.internal/re/readline/pull/60

View File

@ -1,7 +1,7 @@
[![Build Status](https://travis-ci.org/chzyer/readline.svg?branch=master)](https://travis-ci.org/chzyer/readline) [![Build Status](https://travis-ci.org/chzyer/readline.svg?branch=master)](https://travis-ci.org/chzyer/readline)
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](LICENSE.md) [![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](LICENSE.md)
[![Version](https://img.shields.io/github/tag/chzyer/readline.svg)](https://github.com/chzyer/readline/releases) [![Version](https://img.shields.io/github/tag/chzyer/readline.svg)](https://git.internal/re/readline/releases)
[![GoDoc](https://godoc.org/github.com/chzyer/readline?status.svg)](https://godoc.org/github.com/chzyer/readline) [![GoDoc](https://godoc.org/git.internal/re/readline?status.svg)](https://godoc.org/git.internal/re/readline)
[![OpenCollective](https://opencollective.com/readline/badge/backers.svg)](#backers) [![OpenCollective](https://opencollective.com/readline/badge/backers.svg)](#backers)
[![OpenCollective](https://opencollective.com/readline/badge/sponsors.svg)](#sponsors) [![OpenCollective](https://opencollective.com/readline/badge/sponsors.svg)](#sponsors)

View File

@ -9,7 +9,7 @@ import (
"strings" "strings"
"time" "time"
"github.com/chzyer/readline" "git.internal/re/readline"
) )
func usage(w io.Writer) { func usage(w io.Writer) {

View File

@ -2,12 +2,12 @@ package main
import ( import (
"fmt" "fmt"
"log"
"math/rand" "math/rand"
"time" "time"
"github.com/chzyer/readline" "git.internal/re/readline"
) )
import "log"
func main() { func main() {
rl, err := readline.NewEx(&readline.Config{ rl, err := readline.NewEx(&readline.Config{

View File

@ -3,7 +3,7 @@ package main
import ( import (
"strings" "strings"
"github.com/chzyer/readline" "git.internal/re/readline"
) )
func main() { func main() {

View File

@ -22,7 +22,7 @@ package main
import ( import (
"fmt" "fmt"
"github.com/chzyer/readline" "git.internal/re/readline"
) )
const ( const (

View File

@ -1,6 +1,6 @@
package main package main
import "github.com/chzyer/readline" import "git.internal/re/readline"
func main() { func main() {
if err := readline.DialRemote("tcp", ":12344"); err != nil { if err := readline.DialRemote("tcp", ":12344"); err != nil {

View File

@ -3,7 +3,7 @@ package main
import ( import (
"fmt" "fmt"
"github.com/chzyer/readline" "git.internal/re/readline"
) )
func main() { func main() {

4
go.mod
View File

@ -1,4 +1,4 @@
module github.com/chzyer/readline module git.internal/re/readline
go 1.15 go 1.15
@ -6,5 +6,3 @@ require (
github.com/chzyer/test v1.0.0 github.com/chzyer/test v1.0.0
golang.org/x/sys v0.0.0-20220310020820-b874c991c1a5 golang.org/x/sys v0.0.0-20220310020820-b874c991c1a5
) )
require github.com/chzyer/logex v1.2.1

View File

@ -1,6 +1,6 @@
// deprecated. // deprecated.
// see https://github.com/chzyer/readline/issues/43 // see https://git.internal/re/readline/issues/43
// use github.com/chzyer/readline/runes.go // use git.internal/re/readline/runes.go
package runes package runes
import ( import (