Documentation
¶
Index ¶
Constants ¶
View Source
const ( APP_DIR_NAME = "lazycopilot" STYLES_FILE_NAME = "commit-styles.json" DEFAULT_APP_PATHS = "/.config" )
Variables ¶
View Source
var COMMIT_PROMPT = wrapBlockCode("diff", "{{diff}}") + "\n\n" + "Write a concise and informative commit message for the change with commitizen convention. If multiple files are changed, provide a summary of the changes without being too specific per-file changes. Ensure the message is readable and clearly conveys the purpose of the changes. Make sure the title has maximum 50 characters and message is wrapped at 72 characters. DON'T WRAP IN CODE BLOCK."
View Source
var ClientID = "Iv1.b507a08c87ecfe98"
View Source
var DefaultCommitStyles = []CommitStyle{
{
Name: "normal",
Description: "Standard commit message style",
Prompt: "\n\nWriting style clear, concise, and to the point. Focus on the technical change and why it was made.",
},
{
Name: "funny",
Description: "Funny commit messages",
Prompt: "\n\nWriting style humorous, lighthearted, and potentially self-deprecating. Focus on making the reader smile while still conveying the essence of the change.",
},
{
Name: "wise",
Description: "Wise and inspirational commit messages",
Prompt: "\n\nWriting style wise, inspirational, and potentially poetic. Focus on providing a deeper meaning to the technical change.",
},
{
Name: "trolling",
Description: "Trolling commit messages",
Prompt: "\n\nWriting style playful, slightly provocative, and potentially sarcastic. Focus on A bit of a jab, but still conveys the technical change.",
},
}
Functions ¶
func GetCommitStylesConfigPath ¶ added in v1.1.0
func GetCommitStylesConfigPath() string
func SaveCommitStyles ¶ added in v1.1.0
func SaveCommitStyles(styles []CommitStyle) error
Types ¶
type CommitStyle ¶ added in v1.1.0
type CommitStyle struct {
Name string `json:"name"`
Description string `json:"description"`
Prompt string `json:"prompt"`
}
func LoadCommitStyles ¶ added in v1.1.0
func LoadCommitStyles() []CommitStyle
Click to show internal directories.
Click to hide internal directories.