utils

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddGitmojiToCommitMessage

func AddGitmojiToCommitMessage(commitMessage string) string

AddGitmojiToCommitMessage adds a Gitmoji to the commit message based on its type.

func FormatGitCommand

func FormatGitCommand(msg string) string

formatGitCommand formats the git commit command for display based on message content. Handles both single-line and multi-line commit messages.

func GetPromptForSingleCommit

func GetPromptForSingleCommit(diff string, opts ai.MessageOptions) string

commitType, customMessageConvention, language, scope string

func PrintDryRun

func PrintDryRun(diff string, cfg *ai.Config)

PrintDryRun displays the exact prompt and configuration sent to the AI model. Used exclusively in --dry-run mode to help debugging prompt engineering and cost estimation. No network request is made.

Types

This section is empty.

Jump to

Keyboard shortcuts

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