From 20108d4abf49a8425e6a9ce7214645464896f8a2 Mon Sep 17 00:00:00 2001 From: arrow2nd <44780846+arrow2nd@users.noreply.github.com> Date: Tue, 4 Oct 2022 15:23:52 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=E3=83=A2=E3=82=B8=E3=83=A5=E3=83=BC?= =?UTF-8?q?=E3=83=AB=E3=81=AE=E3=83=91=E3=82=B9=E3=82=92=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=20(#57)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: モジュールのパスを更新 * docs(CHANGELOG): v2.0.0 --- CHANGELOG.md | 10 +++++++--- app/account.go | 2 +- app/app.go | 4 ++-- app/cmd.go | 4 ++-- app/cmd_account.go | 2 +- app/cmd_docs.go | 4 ++-- app/cmd_edit.go | 4 ++-- app/cmd_page.go | 2 +- app/cmd_quit.go | 2 +- app/cmd_tweet.go | 2 +- app/layout_poll_test.go | 2 +- app/layout_tweet_test.go | 2 +- app/layout_user_test.go | 2 +- app/page.go | 2 +- app/page_timeline.go | 2 +- app/page_user.go | 2 +- app/shared.go | 6 +++--- app/tweets.go | 2 +- app/util.go | 2 +- app/util_test.go | 2 +- cli/cli_test.go | 2 +- cli/help_test.go | 2 +- cli/validate_test.go | 2 +- config/config.go | 2 +- config/cred.go | 2 +- config/cred_test.go | 4 ++-- config/io.go | 2 +- go.mod | 4 ++-- log/exit_test.go | 2 +- main.go | 4 ++-- 30 files changed, 45 insertions(+), 41 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e0a74df..e3c90bd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,16 +2,18 @@ ## [Unreleased] +## [v2.0.0] - 2022-10-04 + ### Added - nekome 内での複数行のツイート編集機能を追加 -- カスタムできる配色・スタイルの項目を追加 - キーバインドのカスタマイズを追加 - レイアウトのカスタマイズを追加 +- カスタマイズできる配色・スタイル設定の項目を追加 +- カスタマイズできる外観設定の項目を追加 - キーバインドを追加 - 新規ツイート作成 - ユーザのいいねリストを開く -- `:` でのコマンド補完を追加 ### Fixed @@ -27,6 +29,7 @@ - ショートカットの呼称をキーバインドに変更 - モーダルのボーダースタイルを変更 - カーソル移動の上下ループを廃止 +- `:` でコマンド補完を開始するよう変更 ## [v1.2.0] - 2022-08-18 @@ -76,7 +79,8 @@ - リリースしました! 😸 -[unreleased]: https://github.com/arrow2nd/nekome/compare/v1.2.0...HEAD +[unreleased]: https://github.com/arrow2nd/nekome/compare/v2.0.0...HEAD +[v2.0.0]: https://github.com/arrow2nd/nekome/compare/v1.1.0...v2.0.0 [v1.2.0]: https://github.com/arrow2nd/nekome/compare/v1.1.0...v1.2.0 [v1.1.0]: https://github.com/arrow2nd/nekome/compare/v1.0.3...v1.1.0 [v1.0.3]: https://github.com/arrow2nd/nekome/compare/v1.0.2...v1.0.3 diff --git a/app/account.go b/app/account.go index a782f80..effad1d 100644 --- a/app/account.go +++ b/app/account.go @@ -1,6 +1,6 @@ package app -import "github.com/arrow2nd/nekome/api" +import "github.com/arrow2nd/nekome/v2/api" // addAccount : アカウントを追加 func addAccount(setMain bool) error { diff --git a/app/app.go b/app/app.go index 0d84812..6e4f947 100644 --- a/app/app.go +++ b/app/app.go @@ -5,8 +5,8 @@ import ( "os" "code.rocketnine.space/tslocum/cbind" - "github.com/arrow2nd/nekome/cli" - "github.com/arrow2nd/nekome/config" + "github.com/arrow2nd/nekome/v2/cli" + "github.com/arrow2nd/nekome/v2/config" "github.com/gdamore/tcell/v2" "github.com/mattn/go-runewidth" "github.com/rivo/tview" diff --git a/app/cmd.go b/app/cmd.go index e69885d..660db57 100644 --- a/app/cmd.go +++ b/app/cmd.go @@ -3,8 +3,8 @@ package app import ( "fmt" - "github.com/arrow2nd/nekome/cli" - "github.com/arrow2nd/nekome/log" + "github.com/arrow2nd/nekome/v2/cli" + "github.com/arrow2nd/nekome/v2/log" "github.com/spf13/pflag" ) diff --git a/app/cmd_account.go b/app/cmd_account.go index 6764fe2..a41ab3e 100644 --- a/app/cmd_account.go +++ b/app/cmd_account.go @@ -4,7 +4,7 @@ import ( "errors" "fmt" - "github.com/arrow2nd/nekome/cli" + "github.com/arrow2nd/nekome/v2/cli" "github.com/manifoldco/promptui" "github.com/spf13/pflag" ) diff --git a/app/cmd_docs.go b/app/cmd_docs.go index bb69505..be246dc 100644 --- a/app/cmd_docs.go +++ b/app/cmd_docs.go @@ -3,8 +3,8 @@ package app import ( "fmt" - "github.com/arrow2nd/nekome/cli" - "github.com/arrow2nd/nekome/config" + "github.com/arrow2nd/nekome/v2/cli" + "github.com/arrow2nd/nekome/v2/config" "github.com/spf13/pflag" ) diff --git a/app/cmd_edit.go b/app/cmd_edit.go index 35ee7cc..7b47046 100644 --- a/app/cmd_edit.go +++ b/app/cmd_edit.go @@ -4,8 +4,8 @@ import ( "os" "path" - "github.com/arrow2nd/nekome/cli" - "github.com/arrow2nd/nekome/config" + "github.com/arrow2nd/nekome/v2/cli" + "github.com/arrow2nd/nekome/v2/config" "github.com/manifoldco/promptui" "github.com/spf13/pflag" ) diff --git a/app/cmd_page.go b/app/cmd_page.go index 2e60a5b..d67a582 100644 --- a/app/cmd_page.go +++ b/app/cmd_page.go @@ -4,7 +4,7 @@ import ( "errors" "strings" - "github.com/arrow2nd/nekome/cli" + "github.com/arrow2nd/nekome/v2/cli" "github.com/spf13/pflag" ) diff --git a/app/cmd_quit.go b/app/cmd_quit.go index 13513ee..511b373 100644 --- a/app/cmd_quit.go +++ b/app/cmd_quit.go @@ -1,7 +1,7 @@ package app import ( - "github.com/arrow2nd/nekome/cli" + "github.com/arrow2nd/nekome/v2/cli" "github.com/spf13/pflag" ) diff --git a/app/cmd_tweet.go b/app/cmd_tweet.go index 65db839..1b9d8f6 100644 --- a/app/cmd_tweet.go +++ b/app/cmd_tweet.go @@ -11,7 +11,7 @@ import ( "strings" "syscall" - "github.com/arrow2nd/nekome/cli" + "github.com/arrow2nd/nekome/v2/cli" "github.com/spf13/pflag" "golang.org/x/sync/errgroup" "golang.org/x/term" diff --git a/app/layout_poll_test.go b/app/layout_poll_test.go index a76914e..4ff2969 100644 --- a/app/layout_poll_test.go +++ b/app/layout_poll_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - "github.com/arrow2nd/nekome/config" + "github.com/arrow2nd/nekome/v2/config" "github.com/g8rswimmer/go-twitter/v2" "github.com/stretchr/testify/assert" ) diff --git a/app/layout_tweet_test.go b/app/layout_tweet_test.go index 78f9499..a5aaac0 100644 --- a/app/layout_tweet_test.go +++ b/app/layout_tweet_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - "github.com/arrow2nd/nekome/config" + "github.com/arrow2nd/nekome/v2/config" "github.com/g8rswimmer/go-twitter/v2" "github.com/stretchr/testify/assert" ) diff --git a/app/layout_user_test.go b/app/layout_user_test.go index 67431b5..916f8c0 100644 --- a/app/layout_user_test.go +++ b/app/layout_user_test.go @@ -3,7 +3,7 @@ package app import ( "testing" - "github.com/arrow2nd/nekome/config" + "github.com/arrow2nd/nekome/v2/config" "github.com/g8rswimmer/go-twitter/v2" "github.com/mattn/go-runewidth" "github.com/stretchr/testify/assert" diff --git a/app/page.go b/app/page.go index 329bd58..4820c8b 100644 --- a/app/page.go +++ b/app/page.go @@ -4,7 +4,7 @@ import ( "fmt" "sync" - "github.com/arrow2nd/nekome/config" + "github.com/arrow2nd/nekome/v2/config" "github.com/gdamore/tcell/v2" "github.com/rivo/tview" ) diff --git a/app/page_timeline.go b/app/page_timeline.go index fd06371..ef26a1f 100644 --- a/app/page_timeline.go +++ b/app/page_timeline.go @@ -7,7 +7,7 @@ import ( "math" "time" - "github.com/arrow2nd/nekome/config" + "github.com/arrow2nd/nekome/v2/config" "github.com/g8rswimmer/go-twitter/v2" "github.com/gdamore/tcell/v2" ) diff --git a/app/page_user.go b/app/page_user.go index 101ad6c..1377ebf 100644 --- a/app/page_user.go +++ b/app/page_user.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - "github.com/arrow2nd/nekome/api" + "github.com/arrow2nd/nekome/v2/api" "github.com/g8rswimmer/go-twitter/v2" "github.com/gdamore/tcell/v2" "github.com/rivo/tview" diff --git a/app/shared.go b/app/shared.go index 316f427..94b76a3 100644 --- a/app/shared.go +++ b/app/shared.go @@ -1,9 +1,9 @@ package app import ( - "github.com/arrow2nd/nekome/api" - "github.com/arrow2nd/nekome/config" - "github.com/arrow2nd/nekome/log" + "github.com/arrow2nd/nekome/v2/api" + "github.com/arrow2nd/nekome/v2/config" + "github.com/arrow2nd/nekome/v2/log" "github.com/rivo/tview" ) diff --git a/app/tweets.go b/app/tweets.go index af0b649..c977264 100644 --- a/app/tweets.go +++ b/app/tweets.go @@ -4,7 +4,7 @@ import ( "fmt" "sync" - "github.com/arrow2nd/nekome/config" + "github.com/arrow2nd/nekome/v2/config" "github.com/g8rswimmer/go-twitter/v2" "github.com/rivo/tview" ) diff --git a/app/util.go b/app/util.go index c71ff4e..73d4f3d 100644 --- a/app/util.go +++ b/app/util.go @@ -16,7 +16,7 @@ import ( "strings" "time" - "github.com/arrow2nd/nekome/log" + "github.com/arrow2nd/nekome/v2/log" "github.com/g8rswimmer/go-twitter/v2" "github.com/mattn/go-runewidth" "golang.org/x/crypto/ssh/terminal" diff --git a/app/util_test.go b/app/util_test.go index 04bd380..40e20e2 100644 --- a/app/util_test.go +++ b/app/util_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - "github.com/arrow2nd/nekome/config" + "github.com/arrow2nd/nekome/v2/config" "github.com/g8rswimmer/go-twitter/v2" "github.com/mattn/go-runewidth" "github.com/stretchr/testify/assert" diff --git a/cli/cli_test.go b/cli/cli_test.go index 02246be..58ef0e0 100644 --- a/cli/cli_test.go +++ b/cli/cli_test.go @@ -3,7 +3,7 @@ package cli_test import ( "testing" - "github.com/arrow2nd/nekome/cli" + "github.com/arrow2nd/nekome/v2/cli" "github.com/spf13/pflag" "github.com/stretchr/testify/assert" ) diff --git a/cli/help_test.go b/cli/help_test.go index 5f2689b..e8e86d9 100644 --- a/cli/help_test.go +++ b/cli/help_test.go @@ -3,7 +3,7 @@ package cli_test import ( "testing" - "github.com/arrow2nd/nekome/cli" + "github.com/arrow2nd/nekome/v2/cli" "github.com/spf13/pflag" "github.com/stretchr/testify/assert" ) diff --git a/cli/validate_test.go b/cli/validate_test.go index 66cc2e5..81252e7 100644 --- a/cli/validate_test.go +++ b/cli/validate_test.go @@ -3,7 +3,7 @@ package cli_test import ( "testing" - "github.com/arrow2nd/nekome/cli" + "github.com/arrow2nd/nekome/v2/cli" "github.com/stretchr/testify/assert" ) diff --git a/config/config.go b/config/config.go index f85c045..a9d1a38 100644 --- a/config/config.go +++ b/config/config.go @@ -1,7 +1,7 @@ package config import ( - "github.com/arrow2nd/nekome/log" + "github.com/arrow2nd/nekome/v2/log" ) // Config : 設定 diff --git a/config/cred.go b/config/cred.go index 02492c1..a80b2f9 100644 --- a/config/cred.go +++ b/config/cred.go @@ -3,7 +3,7 @@ package config import ( "fmt" - "github.com/arrow2nd/nekome/api" + "github.com/arrow2nd/nekome/v2/api" "github.com/dghubble/oauth1" ) diff --git a/config/cred_test.go b/config/cred_test.go index 61cda0a..2cef141 100644 --- a/config/cred_test.go +++ b/config/cred_test.go @@ -3,8 +3,8 @@ package config_test import ( "testing" - "github.com/arrow2nd/nekome/api" - "github.com/arrow2nd/nekome/config" + "github.com/arrow2nd/nekome/v2/api" + "github.com/arrow2nd/nekome/v2/config" "github.com/dghubble/oauth1" "github.com/stretchr/testify/assert" ) diff --git a/config/io.go b/config/io.go index 630bd41..d1984d7 100644 --- a/config/io.go +++ b/config/io.go @@ -63,7 +63,7 @@ Starting with nekome v2.0.0, the configuration file format has been changed from Please run 'nekome edit' and reconfigure the file. For more information, please refer to the following pages. -https://github.com/arrow2nd/nekome/blob/v2/docs/en/migrate-v1-v2.md +https://github.com/arrow2nd/nekome/v2/blob/v2/docs/en/migrate-v1-v2.md (This notice will not appear if you delete the old configuration file) ` diff --git a/go.mod b/go.mod index ecccac8..d1daf91 100644 --- a/go.mod +++ b/go.mod @@ -1,8 +1,9 @@ -module github.com/arrow2nd/nekome +module github.com/arrow2nd/nekome/v2 go 1.18 require ( + code.rocketnine.space/tslocum/cbind v0.1.5 github.com/BurntSushi/toml v1.2.0 github.com/atotto/clipboard v0.1.4 github.com/dghubble/oauth1 v0.7.1 @@ -14,7 +15,6 @@ require ( ) require ( - code.rocketnine.space/tslocum/cbind v0.1.5 // indirect github.com/chzyer/readline v1.5.1 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/gdamore/encoding v1.0.0 // indirect diff --git a/log/exit_test.go b/log/exit_test.go index 2370337..242f526 100644 --- a/log/exit_test.go +++ b/log/exit_test.go @@ -3,7 +3,7 @@ package log_test import ( "testing" - "github.com/arrow2nd/nekome/log" + "github.com/arrow2nd/nekome/v2/log" "github.com/stretchr/testify/assert" ) diff --git a/main.go b/main.go index f942750..0ad579f 100644 --- a/main.go +++ b/main.go @@ -1,8 +1,8 @@ package main import ( - "github.com/arrow2nd/nekome/app" - "github.com/arrow2nd/nekome/log" + "github.com/arrow2nd/nekome/v2/app" + "github.com/arrow2nd/nekome/v2/log" ) func main() {