commit

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GenerateCommand = cli.Command{
	Name:  "generate",
	Usage: "Generate a commit message from staged changes using AI",
	Flags: []cli.Flag{
		&cli.StringFlag{
			Name:  "context",
			Usage: "Extra context to guide the AI (e.g. 'fixes login bug reported by QA')",
		},
		&cli.StringFlag{
			Name:  "issue",
			Usage: "Issue URL or identifier to append to the commit message (e.g. 'https://github.com/org/repo/issues/42')",
		},
	},
	Action: func(ctx context.Context, cmd *cli.Command) error {
		return runGenerate(ctx, cmd.String("context"), cmd.String("issue"))
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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