entity

package
v0.5.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveConfig added in v0.5.0

func SaveConfig(configIndex, updateConfigParamInt int, updateConfigParamStr string) error

func WriteConfig added in v0.4.5

func WriteConfig(config Config) error

Types

type CodeFormat added in v0.4.5

type CodeFormat int

コミットメッセージの形式の列挙型

const (
	NormalFormat CodeFormat = iota
	EmojiFormat
	PrefixFormat
)

type Config

type Config struct {
	ChatGptApiKey string `json:"chatGptApiKey"`
	UseLanguage   int    `json:"UseLanguage"`
	CommitFormat  int    `json:"CommitFormat"`
	AISource      int    `json:"AISource"`
}

func ReadConfig added in v0.4.5

func ReadConfig() (Config, error)

func (*Config) Config2PbVars added in v0.4.5

func (c *Config) Config2PbVars() (pb.CodeFormatType, pb.LanguageType)

func (*Config) WithGptRequestLocation added in v0.5.0

func (c *Config) WithGptRequestLocation() GptRequestLocation

type GptRequestLocation added in v0.5.0

type GptRequestLocation int

ChatGPTのAPIを叩く場所

const (
	Server GptRequestLocation = iota
	Client
)

type Language added in v0.4.5

type Language int

コミットメッセージの言語の列挙型

const (
	EN Language = iota
	JP
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL