diff --git a/.travis.yml b/.travis.yml index 9c35955..07235e4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,7 +2,7 @@ language: go go: - 1.x script: - - GOOS=windows go install github.com/chzyer/readline/example/... - - GOOS=linux go install github.com/chzyer/readline/example/... - - GOOS=darwin go install github.com/chzyer/readline/example/... + - GOOS=windows go install git.internal/re/readline/example/... + - GOOS=linux go install git.internal/re/readline/example/... + - GOOS=darwin go install git.internal/re/readline/example/... - go test -race -v diff --git a/CHANGELOG.md b/CHANGELOG.md index 14ff5be..327e0d3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,12 +19,12 @@ ### 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 * [#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. -* 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. * [#33][33], vim mode now support `c`, `d`, `x (delete character)`, `r (replace character)` @@ -42,17 +42,17 @@ * Initial public release. -[12]: https://github.com/chzyer/readline/pull/12 -[17]: https://github.com/chzyer/readline/pull/17 -[23]: https://github.com/chzyer/readline/pull/23 -[27]: https://github.com/chzyer/readline/pull/27 -[28]: https://github.com/chzyer/readline/pull/28 -[33]: https://github.com/chzyer/readline/pull/33 -[38]: https://github.com/chzyer/readline/pull/38 -[42]: https://github.com/chzyer/readline/pull/42 -[43]: https://github.com/chzyer/readline/pull/43 -[46]: https://github.com/chzyer/readline/pull/46 -[48]: https://github.com/chzyer/readline/pull/48 -[49]: https://github.com/chzyer/readline/pull/49 -[53]: https://github.com/chzyer/readline/pull/53 -[60]: https://github.com/chzyer/readline/pull/60 +[12]: https://git.internal/re/readline/pull/12 +[17]: https://git.internal/re/readline/pull/17 +[23]: https://git.internal/re/readline/pull/23 +[27]: https://git.internal/re/readline/pull/27 +[28]: https://git.internal/re/readline/pull/28 +[33]: https://git.internal/re/readline/pull/33 +[38]: https://git.internal/re/readline/pull/38 +[42]: https://git.internal/re/readline/pull/42 +[43]: https://git.internal/re/readline/pull/43 +[46]: https://git.internal/re/readline/pull/46 +[48]: https://git.internal/re/readline/pull/48 +[49]: https://git.internal/re/readline/pull/49 +[53]: https://git.internal/re/readline/pull/53 +[60]: https://git.internal/re/readline/pull/60 diff --git a/README.md b/README.md index 4b0a5ff..e8dc06f 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ [![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) -[![Version](https://img.shields.io/github/tag/chzyer/readline.svg)](https://github.com/chzyer/readline/releases) -[![GoDoc](https://godoc.org/github.com/chzyer/readline?status.svg)](https://godoc.org/github.com/chzyer/readline) +[![Version](https://img.shields.io/github/tag/chzyer/readline.svg)](https://git.internal/re/readline/releases) +[![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/sponsors.svg)](#sponsors) diff --git a/example/readline-demo/readline-demo.go b/example/readline-demo/readline-demo.go index c53eec0..c6d3c00 100644 --- a/example/readline-demo/readline-demo.go +++ b/example/readline-demo/readline-demo.go @@ -9,7 +9,7 @@ import ( "strings" "time" - "github.com/chzyer/readline" + "git.internal/re/readline" ) func usage(w io.Writer) { diff --git a/example/readline-im/readline-im.go b/example/readline-im/readline-im.go index 16803bd..e8e4483 100644 --- a/example/readline-im/readline-im.go +++ b/example/readline-im/readline-im.go @@ -2,12 +2,12 @@ package main import ( "fmt" + "log" "math/rand" "time" - "github.com/chzyer/readline" + "git.internal/re/readline" ) -import "log" func main() { rl, err := readline.NewEx(&readline.Config{ diff --git a/example/readline-multiline/readline-multiline.go b/example/readline-multiline/readline-multiline.go index 2192cf6..61b5e03 100644 --- a/example/readline-multiline/readline-multiline.go +++ b/example/readline-multiline/readline-multiline.go @@ -3,7 +3,7 @@ package main import ( "strings" - "github.com/chzyer/readline" + "git.internal/re/readline" ) func main() { diff --git a/example/readline-pass-strength/readline-pass-strength.go b/example/readline-pass-strength/readline-pass-strength.go index dfd297d..64ef8bb 100644 --- a/example/readline-pass-strength/readline-pass-strength.go +++ b/example/readline-pass-strength/readline-pass-strength.go @@ -4,25 +4,25 @@ // // This file is licensed under the WTFPL: // -// DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE -// Version 2, December 2004 +// DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE +// Version 2, December 2004 // -// Copyright (C) 2004 Sam Hocevar +// Copyright (C) 2004 Sam Hocevar // -// Everyone is permitted to copy and distribute verbatim or modified -// copies of this license document, and changing it is allowed as long -// as the name is changed. +// Everyone is permitted to copy and distribute verbatim or modified +// copies of this license document, and changing it is allowed as long +// as the name is changed. // -// DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE -// TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION +// DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE +// TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION // -// 0. You just DO WHAT THE FUCK YOU WANT TO. +// 0. You just DO WHAT THE FUCK YOU WANT TO. package main import ( "fmt" - "github.com/chzyer/readline" + "git.internal/re/readline" ) const ( diff --git a/example/readline-remote/readline-remote-client/client.go b/example/readline-remote/readline-remote-client/client.go index 3b7ff31..574ecc7 100644 --- a/example/readline-remote/readline-remote-client/client.go +++ b/example/readline-remote/readline-remote-client/client.go @@ -1,6 +1,6 @@ package main -import "github.com/chzyer/readline" +import "git.internal/re/readline" func main() { if err := readline.DialRemote("tcp", ":12344"); err != nil { diff --git a/example/readline-remote/readline-remote-server/server.go b/example/readline-remote/readline-remote-server/server.go index 38abc7d..6e1974a 100644 --- a/example/readline-remote/readline-remote-server/server.go +++ b/example/readline-remote/readline-remote-server/server.go @@ -3,7 +3,7 @@ package main import ( "fmt" - "github.com/chzyer/readline" + "git.internal/re/readline" ) func main() { diff --git a/go.mod b/go.mod index 66180f6..9d87ea4 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/chzyer/readline +module git.internal/re/readline go 1.15 @@ -6,5 +6,3 @@ require ( github.com/chzyer/test v1.0.0 golang.org/x/sys v0.0.0-20220310020820-b874c991c1a5 ) - -require github.com/chzyer/logex v1.2.1 diff --git a/runes/runes.go b/runes/runes.go index b069440..969d5a5 100644 --- a/runes/runes.go +++ b/runes/runes.go @@ -1,6 +1,6 @@ // deprecated. -// see https://github.com/chzyer/readline/issues/43 -// use github.com/chzyer/readline/runes.go +// see https://git.internal/re/readline/issues/43 +// use git.internal/re/readline/runes.go package runes import (