Documentation
¶
Index ¶
- func CleanupTempFiles(dir string) error
- func GetGitignorePatterns() ([]string, error)
- func GetSupportedLanguage(path string) string
- func GracefulShutdown(done chan bool, cleanup func())
- func IsDefaultIgnored(path string) bool
- func IsGitIgnored(path string, patterns []string) bool
- func PromptUser(path string) (bool, error)
- func RetryWithBackoff(operation func() error, maxRetries uint64) error
- func WriteToTempFile(relativePath string, code string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupTempFiles ¶
CleanupTempFiles Cleanup temporary files
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(done chan bool, cleanup func())
func IsDefaultIgnored ¶
func IsGitIgnored ¶
IsGitIgnored checks if a file path matches any of the patterns in .gitignore.
func PromptUser ¶
PromptUser Prompt the user to accept or reject the changes
func RetryWithBackoff ¶
RetryWithBackoff Function to encapsulate the retry logic with backoff
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.