Documentation
¶
Index ¶
- func NewCmdCommit(ioStreams genericclioptions.IOStreams, cfg *options.Config) *cobra.Command
- type Option
- func WithCommitLang(lang string) Option
- func WithCommitPrefix(prefix string) Option
- func WithConfig(cfg *options.Config) Option
- func WithFilesToAdd(files []string) Option
- func WithIOStreams(ioStreams genericclioptions.IOStreams) Option
- func WithIsAutoCoder(isAutoCoder bool) Option
- func WithNoConfirm(noConfirm bool) Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdCommit ¶
NewCmdCommit returns a cobra command for commit msg.
Types ¶
type Option ¶ added in v0.12.0
type Option func(*Options)
Option defines a function type for configuring Options
func WithCommitLang ¶ added in v0.12.0
WithCommitLang sets the commit language
func WithCommitPrefix ¶ added in v0.12.0
WithCommitPrefix sets the commit prefix
func WithConfig ¶ added in v0.12.0
WithConfig sets the configuration
func WithFilesToAdd ¶ added in v0.12.0
WithFilesToAdd sets the files to add
func WithIOStreams ¶ added in v0.12.0
func WithIOStreams(ioStreams genericclioptions.IOStreams) Option
WithIOStreams sets the IO streams
func WithIsAutoCoder ¶ added in v0.13.8
WithIsAutoCoder marks the commit as coming from auto coder
func WithNoConfirm ¶ added in v0.12.0
WithNoConfirm sets the noConfirm flag
type Options ¶
type Options struct { genericclioptions.IOStreams FilesToAdd []string TokenUsage llms.Usage // Step token usages CodeReviewUsage llms.Usage SummarizeTitleUsage llms.Usage SummarizePrefixUsage llms.Usage TranslationUsage llms.Usage // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.