Documentation ¶
Index ¶
- func ConfirmAdditinalContext() (bool, error)
- func ConfirmPrompt(path string) (bool, error)
- func DetectLanguageFromCodeBlock(content string) string
- func GetGitignorePatterns(cwd string) ([]string, error)
- func GetSupportedLanguage(path string) string
- func GracefulShutdown(ctx context.Context, stop context.CancelFunc, cleanup func())
- func InputPrompt(reader *bufio.Reader) (string, error)
- func IsDefaultIgnored(path string) bool
- func IsGitIgnored(path string, patterns []string) bool
- func RenderAndPrintMarkdown(content string, language string, theme string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfirmAdditinalContext ¶ added in v1.7.6
ConfirmAdditinalContext prompts the user to accept or reject additional context
func ConfirmPrompt ¶ added in v1.3.0
ConfirmPrompt prompts the user to accept or reject the changes in a file path
func DetectLanguageFromCodeBlock ¶ added in v1.3.3
func GetGitignorePatterns ¶
GetGitignorePatterns reads and returns the patterns from the .gitignore file. If the file does not exist, it returns an empty pattern list.
func GetSupportedLanguage ¶
func GracefulShutdown ¶
func GracefulShutdown(ctx context.Context, stop context.CancelFunc, cleanup func())
func InputPrompt ¶ added in v1.3.0
InputPrompt prompts the user to enter their request for code assistance in a charming way
func IsDefaultIgnored ¶
func IsGitIgnored ¶
IsGitIgnored checks if a file path matches any of the patterns in .gitignore.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.