From a962cc8abe10b0fcd53b8308fa89c4cf613d00cd Mon Sep 17 00:00:00 2001 From: kayos Date: Sun, 11 Jul 2021 18:51:19 -0700 Subject: [PATCH] fix go mod --- CHANGELOG.md | 18 +++++++++--------- README.md | 14 +++++++------- _example/exec-command/main.go | 2 +- _example/http-prompt/main.go | 2 +- _example/live-prefix/main.go | 2 +- _example/simple-echo/cjk-cyrillic/main.go | 2 +- _example/simple-echo/main.go | 2 +- _tools/complete_file/main.go | 4 ++-- _tools/vt100_debug/main.go | 4 ++-- buffer.go | 2 +- completer/file.go | 4 ++-- completion.go | 2 +- document.go | 4 ++-- document_test.go | 2 +- emacs.go | 2 +- go.mod | 2 +- input_posix.go | 2 +- internal/bisect/bisect_test.go | 2 +- internal/strings/strings_test.go | 2 +- output_vt100.go | 2 +- prompt.go | 2 +- render.go | 2 +- signal_posix.go | 2 +- signal_windows.go | 2 +- 24 files changed, 42 insertions(+), 42 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b9e21f1..1b719ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,15 +8,15 @@ next release. ### What's new? -* Add `prompt.FuzzyFilter` for fuzzy matching at [#92](https://github.com/c-bata/go-prompt/pull/92). -* Add `OptionShowCompletionAtStart` to show completion at start at [#100](https://github.com/c-bata/go-prompt/pull/100). -* Add `prompt.NewStderrWriter` at [#102](https://github.com/c-bata/go-prompt/pull/102). +* Add `prompt.FuzzyFilter` for fuzzy matching at [#92](https://git.tcp.direct/tcp.direct/go-prompt/pull/92). +* Add `OptionShowCompletionAtStart` to show completion at start at [#100](https://git.tcp.direct/tcp.direct/go-prompt/pull/100). +* Add `prompt.NewStderrWriter` at [#102](https://git.tcp.direct/tcp.direct/go-prompt/pull/102). ### Fixed -* Fix resetting display attributes (please see [pull #104](https://github.com/c-bata/go-prompt/pull/104) for more details). -* Fix error handling of Flush function in ConsoleWriter (please see [pull #97](https://github.com/c-bata/go-prompt/pull/97) for more details). -* Fix panic problem when reading from stdin before starting the prompt (please see [issue #88](https://github.com/c-bata/go-prompt/issues/88) for more details). +* Fix resetting display attributes (please see [pull #104](https://git.tcp.direct/tcp.direct/go-prompt/pull/104) for more details). +* Fix error handling of Flush function in ConsoleWriter (please see [pull #97](https://git.tcp.direct/tcp.direct/go-prompt/pull/97) for more details). +* Fix panic problem when reading from stdin before starting the prompt (please see [issue #88](https://git.tcp.direct/tcp.direct/go-prompt/issues/88) for more details). ### Removed or Deprecated @@ -28,7 +28,7 @@ next release. * Support CJK(Chinese, Japanese and Korean) and Cyrillic characters. * Add OptionCompletionWordSeparator(x string) to customize insertion points for completions. - * To support this, text query functions by arbitrary word separator are added in Document (please see [here](https://github.com/c-bata/go-prompt/pull/79) for more details). + * To support this, text query functions by arbitrary word separator are added in Document (please see [here](https://git.tcp.direct/tcp.direct/go-prompt/pull/79) for more details). * Add FilePathCompleter to complete file path on your system. * Add option to customize ascii code key bindings. * Add GetWordAfterCursor method in Document. @@ -61,8 +61,8 @@ next release. ### Fixed * Fix the behavior of `Ctrl+W` keybind. -* Fix the panic because when running on a docker container (please see [here](https://github.com/c-bata/go-prompt/pull/32) for details). -* Fix panic when making terminal window small size after input 2 lines of texts. See [here](https://github.com/c-bata/go-prompt/issues/37) for details). +* Fix the panic because when running on a docker container (please see [here](https://git.tcp.direct/tcp.direct/go-prompt/pull/32) for details). +* Fix panic when making terminal window small size after input 2 lines of texts. See [here](https://git.tcp.direct/tcp.direct/go-prompt/issues/37) for details). * And also fixed many bugs that layout is broken when using Terminal.app, GNU Terminal and a Goland(IntelliJ). ### News diff --git a/README.md b/README.md index cfcd7a3..ef6846d 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ # go-prompt -[![Go Report Card](https://goreportcard.com/badge/github.com/c-bata/go-prompt)](https://goreportcard.com/report/github.com/c-bata/go-prompt) +[![Go Report Card](https://goreportcard.com/badge/git.tcp.direct/tcp.direct/go-prompt)](https://goreportcard.com/report/git.tcp.direct/tcp.direct/go-prompt) ![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square) -[![GoDoc](https://godoc.org/github.com/c-bata/go-prompt?status.svg)](https://godoc.org/github.com/c-bata/go-prompt) -![tests](https://github.com/c-bata/go-prompt/workflows/tests/badge.svg) +[![GoDoc](https://godoc.org/git.tcp.direct/tcp.direct/go-prompt?status.svg)](https://godoc.org/git.tcp.direct/tcp.direct/go-prompt) +![tests](https://git.tcp.direct/tcp.direct/go-prompt/workflows/tests/badge.svg) A library for building powerful interactive prompts inspired by [python-prompt-toolkit](https://github.com/jonathanslenders/python-prompt-toolkit), making it easier to build cross-platform command line tools using Go. @@ -13,7 +13,7 @@ package main import ( "fmt" - "github.com/c-bata/go-prompt" + "git.tcp.direct/tcp.direct/go-prompt" ) func completer(d prompt.Document) []prompt.Suggest { @@ -65,7 +65,7 @@ func main() { ### Flexible options -go-prompt provides many options. Please check [option section of GoDoc](https://godoc.org/github.com/c-bata/go-prompt#Option) for more details. +go-prompt provides many options. Please check [option section of GoDoc](https://godoc.org/git.tcp.direct/tcp.direct/go-prompt#Option) for more details. [![options](https://github.com/c-bata/assets/raw/master/go-prompt/prompt-options.png)](#flexible-options) @@ -109,8 +109,8 @@ We have confirmed go-prompt works fine in the following terminals: ## Links * [Change Log](./CHANGELOG.md) -* [GoDoc](http://godoc.org/github.com/c-bata/go-prompt) -* [gocover.io](https://gocover.io/github.com/c-bata/go-prompt) +* [GoDoc](http://godoc.org/git.tcp.direct/tcp.direct/go-prompt) +* [gocover.io](https://gocover.io/git.tcp.direct/tcp.direct/go-prompt) ## Author diff --git a/_example/exec-command/main.go b/_example/exec-command/main.go index 838f756..652035c 100644 --- a/_example/exec-command/main.go +++ b/_example/exec-command/main.go @@ -4,7 +4,7 @@ import ( "os" "os/exec" - prompt "github.com/c-bata/go-prompt" + prompt "git.tcp.direct/tcp.direct/go-prompt" ) func executor(t string) { diff --git a/_example/http-prompt/main.go b/_example/http-prompt/main.go index b372a35..d645b22 100644 --- a/_example/http-prompt/main.go +++ b/_example/http-prompt/main.go @@ -10,7 +10,7 @@ import ( "path" "strings" - prompt "github.com/c-bata/go-prompt" + prompt "git.tcp.direct/tcp.direct/go-prompt" ) type RequestContext struct { diff --git a/_example/live-prefix/main.go b/_example/live-prefix/main.go index 9c7ced7..4b17ca4 100644 --- a/_example/live-prefix/main.go +++ b/_example/live-prefix/main.go @@ -3,7 +3,7 @@ package main import ( "fmt" - prompt "github.com/c-bata/go-prompt" + prompt "git.tcp.direct/tcp.direct/go-prompt" ) var LivePrefixState struct { diff --git a/_example/simple-echo/cjk-cyrillic/main.go b/_example/simple-echo/cjk-cyrillic/main.go index 3e9e53a..2bb063b 100644 --- a/_example/simple-echo/cjk-cyrillic/main.go +++ b/_example/simple-echo/cjk-cyrillic/main.go @@ -3,7 +3,7 @@ package main import ( "fmt" - prompt "github.com/c-bata/go-prompt" + prompt "git.tcp.direct/tcp.direct/go-prompt" ) func executor(in string) { diff --git a/_example/simple-echo/main.go b/_example/simple-echo/main.go index 12b1bb4..da2350a 100644 --- a/_example/simple-echo/main.go +++ b/_example/simple-echo/main.go @@ -3,7 +3,7 @@ package main import ( "fmt" - prompt "github.com/c-bata/go-prompt" + prompt "git.tcp.direct/tcp.direct/go-prompt" ) func completer(in prompt.Document) []prompt.Suggest { diff --git a/_tools/complete_file/main.go b/_tools/complete_file/main.go index 41015cf..a11c279 100644 --- a/_tools/complete_file/main.go +++ b/_tools/complete_file/main.go @@ -5,8 +5,8 @@ import ( "os" "strings" - prompt "github.com/c-bata/go-prompt" - "github.com/c-bata/go-prompt/completer" + prompt "git.tcp.direct/tcp.direct/go-prompt" + "git.tcp.direct/tcp.direct/go-prompt/completer" ) var filePathCompleter = completer.FilePathCompleter{ diff --git a/_tools/vt100_debug/main.go b/_tools/vt100_debug/main.go index c6036d4..9d736c1 100644 --- a/_tools/vt100_debug/main.go +++ b/_tools/vt100_debug/main.go @@ -6,8 +6,8 @@ import ( "fmt" "syscall" - prompt "github.com/c-bata/go-prompt" - "github.com/c-bata/go-prompt/internal/term" + prompt "git.tcp.direct/tcp.direct/go-prompt" + "git.tcp.direct/tcp.direct/go-prompt/internal/term" ) func main() { diff --git a/buffer.go b/buffer.go index 46efbbb..024e920 100644 --- a/buffer.go +++ b/buffer.go @@ -3,7 +3,7 @@ package prompt import ( "strings" - "github.com/c-bata/go-prompt/internal/debug" + "git.tcp.direct/tcp.direct/go-prompt/internal/debug" ) // Buffer emulates the console buffer. diff --git a/completer/file.go b/completer/file.go index 59f2d8d..d92be0c 100644 --- a/completer/file.go +++ b/completer/file.go @@ -7,8 +7,8 @@ import ( "path/filepath" "runtime" - prompt "github.com/c-bata/go-prompt" - "github.com/c-bata/go-prompt/internal/debug" + prompt "git.tcp.direct/tcp.direct/go-prompt" + "git.tcp.direct/tcp.direct/go-prompt/internal/debug" ) var ( diff --git a/completion.go b/completion.go index 57e82ee..f6bcb3f 100644 --- a/completion.go +++ b/completion.go @@ -3,7 +3,7 @@ package prompt import ( "strings" - "github.com/c-bata/go-prompt/internal/debug" + "git.tcp.direct/tcp.direct/go-prompt/internal/debug" runewidth "github.com/mattn/go-runewidth" ) diff --git a/document.go b/document.go index 2a47f52..5d5ee7d 100644 --- a/document.go +++ b/document.go @@ -4,8 +4,8 @@ import ( "strings" "unicode/utf8" - "github.com/c-bata/go-prompt/internal/bisect" - istrings "github.com/c-bata/go-prompt/internal/strings" + "git.tcp.direct/tcp.direct/go-prompt/internal/bisect" + istrings "git.tcp.direct/tcp.direct/go-prompt/internal/strings" runewidth "github.com/mattn/go-runewidth" ) diff --git a/document_test.go b/document_test.go index 9f273b7..7bdbe9a 100644 --- a/document_test.go +++ b/document_test.go @@ -242,7 +242,7 @@ func TestDocument_DisplayCursorPosition(t *testing.T) { // If you're facing test failure on this test case and your terminal is iTerm2, // please check 'Profile -> Text' configuration. 'Use Unicode version 9 widths' // must be checked. - // https://github.com/c-bata/go-prompt/pull/99 + // https://git.tcp.direct/tcp.direct/go-prompt/pull/99 document: &Document{ Text: "Добрый день", cursorPosition: 3, diff --git a/emacs.go b/emacs.go index 632f963..b569b78 100644 --- a/emacs.go +++ b/emacs.go @@ -1,6 +1,6 @@ package prompt -import "github.com/c-bata/go-prompt/internal/debug" +import "git.tcp.direct/tcp.direct/go-prompt/internal/debug" /* diff --git a/go.mod b/go.mod index 30bc6d3..cce94f6 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/c-bata/go-prompt +module git.tcp.direct/tcp.direct/go-prompt go 1.14 diff --git a/input_posix.go b/input_posix.go index f104303..32278f5 100644 --- a/input_posix.go +++ b/input_posix.go @@ -5,7 +5,7 @@ package prompt import ( "syscall" - "github.com/c-bata/go-prompt/internal/term" + "git.tcp.direct/tcp.direct/go-prompt/internal/term" "golang.org/x/sys/unix" ) diff --git a/internal/bisect/bisect_test.go b/internal/bisect/bisect_test.go index 9d52a29..92ef3ed 100644 --- a/internal/bisect/bisect_test.go +++ b/internal/bisect/bisect_test.go @@ -5,7 +5,7 @@ import ( "math/rand" "testing" - "github.com/c-bata/go-prompt/internal/bisect" + "git.tcp.direct/tcp.direct/go-prompt/internal/bisect" ) func Example() { diff --git a/internal/strings/strings_test.go b/internal/strings/strings_test.go index d9d9bc9..23d81c2 100644 --- a/internal/strings/strings_test.go +++ b/internal/strings/strings_test.go @@ -3,7 +3,7 @@ package strings_test import ( "fmt" - "github.com/c-bata/go-prompt/internal/strings" + "git.tcp.direct/tcp.direct/go-prompt/internal/strings" ) func ExampleIndexNotByte() { diff --git a/output_vt100.go b/output_vt100.go index 20850fe..75eb2b5 100644 --- a/output_vt100.go +++ b/output_vt100.go @@ -214,7 +214,7 @@ func (w *VT100Writer) SetColor(fg, bg Color, bold bool) { w.SetDisplayAttributes(fg, bg, DisplayBold) } else { // If using `DisplayDefualt`, it will be broken in some environment. - // Details are https://github.com/c-bata/go-prompt/pull/85 + // Details are https://git.tcp.direct/tcp.direct/go-prompt/pull/85 w.SetDisplayAttributes(fg, bg, DisplayReset) } } diff --git a/prompt.go b/prompt.go index 173cd51..89279f9 100644 --- a/prompt.go +++ b/prompt.go @@ -5,7 +5,7 @@ import ( "os" "time" - "github.com/c-bata/go-prompt/internal/debug" + "git.tcp.direct/tcp.direct/go-prompt/internal/debug" ) // Executor is called when user input something text. diff --git a/render.go b/render.go index 299ac48..bb44db3 100644 --- a/render.go +++ b/render.go @@ -3,7 +3,7 @@ package prompt import ( "runtime" - "github.com/c-bata/go-prompt/internal/debug" + "git.tcp.direct/tcp.direct/go-prompt/internal/debug" runewidth "github.com/mattn/go-runewidth" ) diff --git a/signal_posix.go b/signal_posix.go index f3150df..21f7c5c 100644 --- a/signal_posix.go +++ b/signal_posix.go @@ -7,7 +7,7 @@ import ( "os/signal" "syscall" - "github.com/c-bata/go-prompt/internal/debug" + "git.tcp.direct/tcp.direct/go-prompt/internal/debug" ) func (p *Prompt) handleSignals(exitCh chan int, winSizeCh chan *WinSize, stop chan struct{}) { diff --git a/signal_windows.go b/signal_windows.go index 3a427c7..f34ca32 100644 --- a/signal_windows.go +++ b/signal_windows.go @@ -7,7 +7,7 @@ import ( "os/signal" "syscall" - "github.com/c-bata/go-prompt/internal/debug" + "git.tcp.direct/tcp.direct/go-prompt/internal/debug" ) func (p *Prompt) handleSignals(exitCh chan int, winSizeCh chan *WinSize, stop chan struct{}) {