usecases

package
v0.0.0-...-aac7243 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2025 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenerateCommitMessage

type GenerateCommitMessage struct {
	// contains filtered or unexported fields
}

GenerateCommitMessage is a use case to generate a commit message with the help of an AI

func NewGenerateCommitMessage

func NewGenerateCommitMessage(
	diffService *services.DiffService,
	aiProvider services.AIProvider,
	config *config.Config,
	log utils.Logger,
) *GenerateCommitMessage

NewGenerateCommitMessage creates a new instance of the use case

func (*GenerateCommitMessage) Execute

func (uc *GenerateCommitMessage) Execute(staged bool) (string, error)

Jump to

Keyboard shortcuts

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