Documentation ¶
Index ¶
- func AppAction(c *cli.Context) error
- func CreateApp(actionFunc cli.ActionFunc) *cli.App
- type AICommitBuilder
- type Answer
- type Builder
- type CLI
- type CLIContext
- type CommitBuilder
- type ConfigBuilder
- type ConfigLoader
- type File
- type FileSystem
- type Generator
- type InitContext
- type Initializer
- type Previewable
- type Questioner
- type RenderData
- type TemplateBuilder
- type TemplateBuilderFactory
- type TemplateStyleFormat
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AICommitBuilder ¶
type AICommitBuilder struct {
// contains filtered or unexported fields
}
func (*AICommitBuilder) BuildCommit ¶
func (a *AICommitBuilder) BuildCommit(ctx context.Context, mr *git.MergeRequest) string
type Answer ¶
type Answer struct { RepositoryURL string `survey:"repository_url"` Style string `survey:"style"` Template string `survey:"template"` ConfigDir string `survey:"config_dir"` Token string `survey:"token"` POEToken string `survey:"poe_token"` NeedRobot bool `survey:"need_robot"` AppID string `survey:"app_id"` AppSecret string `survey:"app_secret"` ChatID []string `survey:"chat_id"` BotTitle string `survey:"bot_title"` SkipConfig bool SkipTpl bool }
Answer ...
type CLI ¶
type CLI struct {
// contains filtered or unexported fields
}
func NewCLI ¶
func NewCLI( ctx *CLIContext, fs FileSystem, configLoader ConfigLoader, generator Generator, ) *CLI
type CLIContext ¶
type CLIContext struct { WorkingDir string Stdout io.Writer Stderr io.Writer ConfigPath string Template string OutputPath string Silent bool NoColor bool NoEmoji bool NoCaseSensitive bool Query string NextTag string TagFilterPattern string RepositoryURL string Token string Sort string AI bool AIType string PushBot bool AppID string AppSecret string ChatID []string BotTitle string }
type CommitBuilder ¶
type CommitBuilder interface {
BuildCommit(ctx context.Context, mr *git.MergeRequest) string
}
func NewAICommitBuilder ¶
func NewAICommitBuilder(tp string, token string) CommitBuilder
type ConfigLoader ¶
type ConfigLoader interface {
Load(string) (*config.MRChLogConfig, error)
}
ConfigLoader ...
type File ¶
type File interface { io.Closer io.Reader io.ReaderAt io.Seeker io.Writer Stat() (os.FileInfo, error) }
File ...
type FileSystem ¶
type FileSystem interface { Exists(path string) bool MkdirP(path string) error Create(name string) (File, error) WriteFile(path string, content []byte) error }
FileSystem ...
type Generator ¶
type Generator interface {
Generate(io.Writer, *CLIContext, *config.MRChLogConfig) error
}
Generator ...
type InitContext ¶
type Initializer ¶
type Initializer struct {
// contains filtered or unexported fields
}
Initializer ...
func NewInitializer ¶
func NewInitializer( ctx *InitContext, fs FileSystem, questioner Questioner, configBuilder ConfigBuilder, tplBuilderFactory TemplateBuilderFactory) *Initializer
NewInitializer ...
type Questioner ¶
Questioner ...
func NewQuestioner ¶
func NewQuestioner(client gitcmd.Client, fs FileSystem) Questioner
NewQuestioner ...
type RenderData ¶
type TemplateBuilder ¶
type TemplateBuilder interface { Builder }
TemplateBuilder ...
func NewDefaultTemplateBuilder ¶
func NewDefaultTemplateBuilder() TemplateBuilder
type TemplateBuilderFactory ¶
type TemplateBuilderFactory = func(string) TemplateBuilder
TemplateBuilderFactory ...
type TemplateStyleFormat ¶
type TemplateStyleFormat struct {
// contains filtered or unexported fields
}
TemplateStyleFormat ...
Source Files ¶
Click to show internal directories.
Click to hide internal directories.