Documentation ¶
Index ¶
- func AskDiscovery() bool
- func AskLanguage(fileNames []string, selected []string, files map[string]string) ([]string, []string)
- func AskOverwrite() string
- func CleanupMultiple(selected []string, keys []string) string
- func Contains[T comparable](list []T, item T) bool
- func FileExists(path string) bool
- func FindFileMatches(patterns string) bool
- func GatherPreviousCommentGroup(i int, lastTakenIdx int, lines []string, keep []string) []string
- func GetAllRaw(selected []string, selectedKeys []string) string
- func GetCacheDir() string
- func GetCleanupSelection() bool
- func GetGitignores(sourceDir string) ([]string, error)
- func GetLanguageSelections(files map[string]string, fileNames []string) ([]string, []string)
- func GetNeedsUpdate() bool
- func GetRelevantFiles(allFiles []string) ([]string, map[string]string)
- func GlobExists(path string) bool
- func HandleErr(err error)
- func HandleFileOverwrite(path string, contents string)
- func Insert[T any](a []T, i int, item T) []T
- func LangHeader(langName string) string
- func PrepareGitignores() ([]string, error)
- func Quit()
- func ReadFile(path string) string
- func RemoveUnusedPatterns(contents string) string
- func RunCmd(cmd string, args ...string) (string, error)
- func Ternary[T any](cond bool, whenTrue T, whenFalse T) T
- func ToString[T any](obj T) string
- func UNUSED(x ...interface{})
- func WriteFile(path string, data string, overwrite bool) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AskDiscovery ¶
func AskDiscovery() bool
func AskLanguage ¶
func AskOverwrite ¶
func AskOverwrite() string
func CleanupMultiple ¶
func Contains ¶
func Contains[T comparable](list []T, item T) bool
func FileExists ¶
func FindFileMatches ¶
func GetCacheDir ¶
func GetCacheDir() string
func GetCleanupSelection ¶
func GetCleanupSelection() bool
func GetGitignores ¶
func GetLanguageSelections ¶
func GetNeedsUpdate ¶
func GetNeedsUpdate() bool
func GlobExists ¶
func HandleFileOverwrite ¶
func LangHeader ¶
func PrepareGitignores ¶
func RemoveUnusedPatterns ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.