Skip to content

Conversation

mochi-yu
Copy link
Collaborator

@mochi-yu mochi-yu commented Sep 4, 2023

関連issue

Close #3
Close #10

新規追加

レビュー時に見てもらいたいこと

  • 既存のシステムから項目名を変更したり、不要な項目を削除したりしているので、それの影響が出ていないか。
    特に以下の三か所
    • entity.config.ChatGptTokenからentity.config.ChatGptApiKeyへの変更
    • util.loadenvの削除
    • main関数内のviperの処理

@mochi-yu mochi-yu self-assigned this Sep 4, 2023
@mochi-yu mochi-yu changed the title configコマンドの追加 #3 configコマンドの追加 #3 #10 Sep 4, 2023
Comment on lines +14 to +21
var (
configKey = [...]string{"api-key", "language", "format"}
configOption = [][]string{
{},
{"Japanese", "English"},
{"Format 1", "Format 2"},
}
)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

他のpackageでも参照する予定だから、enumパッケージ等作成して(objectでもいいかな)欲しいかも!

type Format int
const(
PrefixFormat Format = itoa
EmojiFormat
)


これを
enum.PrefixFormatみたいに使う感じ
あとentityにも結びつけられたらいいかな

@cocoide cocoide changed the base branch from main to develop September 7, 2023 15:16
@cocoide cocoide merged commit bfe949e into develop Sep 7, 2023
@mochi-yu mochi-yu deleted the feature/3-setting-language branch September 10, 2023 02:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

実装しているコマンドの内容のドキュメント化 設定の項目を追加
2 participants