Documentation ¶
Index ¶
- Constants
- func CountFilesContainingText(path string, text string, exclude []string) int
- func DeleteDirectoriesorFilesinPath(root string, dirnames []string, filenames []string) error
- func DirectoryStats(path string, print bool) (int, int64, int64, map[string]int, int, int)
- func ExecCommand(args ...string) string
- func ExtractURLsFromDirectoryPath(path string, baseURL string) ([]string, error)
- func ExtractYouTubeData(inputFilePath string)
- func FileExistsInPath(filePath, directoryPath string) (bool, error)
- func GetDepth(path string, dirPath string) int
- func GetResponsefromChatGPT(client gpt3.Client, ctx context.Context, question string)
- func GetShellRemoveFunction(path string) string
- func GitGone()
- func InitiateChatGPTFunction(flags Flag)
- func InitiateDirectoryFunction(flags Flag)
- func InitiateDockerFunction(flags Flag)
- func InitiateFileFunction(flags Flag)
- func InitiateGitFunction(flags Flag)
- func InitiateHelpFunction(flags Flag)
- func InitiateMarkdownFunction(flags Flag)
- func InitiateMiscellaneousFunction(flags Flag)
- func InitiateNoIPFunction(flags Flag)
- func InitiatePHPCSFunction(flags Flag)
- func InitiatePHPFunction(flags Flag)
- func InitiateQuoteFunction(flags Flag)
- func InitiateRsyncFunction(flags Flag)
- func InitiateSyncthingFunction(flags Flag)
- func InitiateYouTubeFunction(flags Flag)
- func MarkdownGenerateFileTree(path string, ignore []string) string
- func MarkdownRemoveLink(markdown string) string
- func QuoteofTheDay()
- func ReadFile(path string) []byte
- func RemoveDirectoriesOlderThan(path string, retentionDays int, level int, exclude []string, dryrun bool) error
- func RemoveFilesExceptExtensions(root string, allowedExtensions []string, exception []string) error
- func RemoveFilesOlderThan(path string, pattern string, retentionDays int, exclude []string, dryrun bool) error
- func RenameFile(oldPath string, newPath string)
- func Rsync()
- func SearchandReplace(path string, from string, to string, limit int)
- func SliceContainsString(elems []string, v string) bool
- func Slugify(s string) string
- func UpdateNoIPHostName(username string, password string, hostname string)
- func WriteFile(FilePath string, content string)
- type Flag
- type FunctionObject
- type NullWriter
- type PHPCSConfig
- type PHPClass
- type PHPFunction
- type RsyncConfig
- type RsyncDirectory
Constants ¶
const HelpText = `` /* 170-byte string literal not displayed */
Documentation Help
Variables ¶
This section is empty.
Functions ¶
func CountFilesContainingText ¶ added in v1.7.0
* Count Files Containing Text
func DeleteDirectoriesorFilesinPath ¶ added in v1.4.0
* Delete Directory or Files in Path Matching Filename
func DirectoryStats ¶ added in v1.6.0
* Directory Stats
func ExtractURLsFromDirectoryPath ¶ added in v1.9.0
* Exctract URLs from Directory Path
func ExtractYouTubeData ¶ added in v1.9.0
func ExtractYouTubeData(inputFilePath string)
* Extract YouTube Data
func FileExistsInPath ¶ added in v1.10.0
File Exist in Path.
func GetResponsefromChatGPT ¶ added in v1.4.0
Get Response from ChatGPT
func GetShellRemoveFunction ¶
Get Shell Remove Function
func InitiateChatGPTFunction ¶ added in v1.4.0
func InitiateChatGPTFunction(flags Flag)
Initiate ChatGPT Function
func InitiateDirectoryFunction ¶ added in v1.10.0
func InitiateDirectoryFunction(flags Flag)
Initiate Directory Function
func InitiateFileFunction ¶ added in v1.9.0
func InitiateFileFunction(flags Flag)
Initiate File Function
func InitiateMarkdownFunction ¶ added in v1.3.0
func InitiateMarkdownFunction(flags Flag)
Initiate Markdown Function
func InitiateMiscellaneousFunction ¶
func InitiateMiscellaneousFunction(flags Flag)
* Initiate Miscellaneous Function
func InitiateNoIPFunction ¶ added in v1.5.0
func InitiateNoIPFunction(flags Flag)
* Initiate NoIP Function
func InitiatePHPCSFunction ¶ added in v1.7.0
func InitiatePHPCSFunction(flags Flag)
* Initiate PHPCS Function
func InitiatePHPFunction ¶ added in v1.4.0
func InitiatePHPFunction(flags Flag)
* Initiate PHP Function
func InitiateRsyncFunction ¶ added in v1.10.0
func InitiateRsyncFunction(flags Flag)
Initiate File Function
func InitiateSyncthingFunction ¶ added in v1.6.0
func InitiateSyncthingFunction(flags Flag)
* Initiate Syncthing Function
func InitiateYouTubeFunction ¶ added in v1.9.0
func InitiateYouTubeFunction(flags Flag)
* Initiate Syncthing Function
func MarkdownGenerateFileTree ¶ added in v1.8.0
Generate File Tree from Directory
func MarkdownRemoveLink ¶ added in v1.3.0
Remove Link from Markdown File
func RemoveDirectoriesOlderThan ¶ added in v1.10.0
func RemoveDirectoriesOlderThan(path string, retentionDays int, level int, exclude []string, dryrun bool) error
Remove directory older than.
func RemoveFilesExceptExtensions ¶ added in v1.4.0
* Remove Files Except Specified Extensions
func RemoveFilesOlderThan ¶ added in v1.6.0
func RemoveFilesOlderThan(path string, pattern string, retentionDays int, exclude []string, dryrun bool) error
* Remove Files Older Than
func SearchandReplace ¶
* Search and Replace in Directory or File
func SliceContainsString ¶
Slice Contains String
func UpdateNoIPHostName ¶ added in v1.5.0
* Update Hostname IP
Types ¶
type Flag ¶
type Flag struct { // Mode ChatGPT *bool Dir *bool Docker *bool DockerCompose *bool DryRun *bool Extract *bool ExtractUrl *bool File *bool Git *bool Gone *bool Help *bool Install *bool ListClass *bool ListFunction *bool ListFunctionCall *bool Minify *bool Markdown *bool NoIP *bool OlderThan *bool PHP *bool PHPCS *bool QuoteofTheDay *bool Remove *bool RemoveConflicts *bool RemoveLink *bool RemoveFunction *bool ResetCache *bool Rsync *bool Stats *bool SearchandReplace *bool Syncthing *bool WPClean *bool WPPluginBuild *bool WPPluginBuildCheck *bool WPPluginRelease *bool WPThemeBuild *bool WPThemeBuildCheck *bool WPRefactor *bool SelfUpdate *bool Tree *bool Update *bool YouTube *bool // Bool Parameters Count *bool Production *bool Prune *bool Reset *bool Restart *bool Version *bool // String Parameters API_KEY *string ID *string Days *int Dirname *[]string Ext *[]string Except *[]string Exclude *[]string Filename *[]string FunctionName *[]string From *string Hostname *string Level *int Limit *int Message *string Path *string Password *string Regex *string Text *string To *string Type *string Url *string Username *string }
Flag Structure
type FunctionObject ¶ added in v1.6.0
FunctionObject struct to store path and function call
type NullWriter ¶ added in v1.4.0
type NullWriter int
type PHPCSConfig ¶ added in v1.10.0
type PHPCSConfig struct {
Phpcs string `json:"phpcs"`
}
PHPCS Config
type PHPClass ¶ added in v1.4.0
* PHP Class
func ListPHPClasses ¶ added in v1.4.0
* Function to List PHP Classes inside Directory and Subdirectory
type PHPFunction ¶ added in v1.4.0
* PHP Function
func ListPHPFunctions ¶ added in v1.4.0
func ListPHPFunctions(root string) ([]PHPFunction, error)
* List PHP Functions
type RsyncConfig ¶ added in v1.10.0
type RsyncConfig struct { Flags string `json:"flags"` Source RsyncDirectory `json:"source"` Destination RsyncDirectory `json:"destination"` Excludes []string `json:"excludes"` }