entity

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteConfig added in v0.4.5

func WriteConfig(config Config) error

Types

type AISource added in v0.4.5

type AISource int
const (
	WrapServer AISource = iota
	OpenAiAPI
)

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)

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