Documentation ¶
Index ¶
- Constants
- func Contains(haystack []string, needle string) bool
- func DeleteGit(ptrRepo string, path string)
- func Exists(path string) (bool, error)
- func GetAlphaNumericValues(input string) string
- func GetBBProject(bbURL string) (project string)
- func GetConfigDir() (configDir string)
- func GetDisplayList(levelNames []string) string
- func GetEnabledModulesMap(enableFlags []string, availableModules map[string]string) (enabledModules map[string]string)
- func GetGitProject(gitURL string) (project string)
- func GetGitRepo(gitURL string) (repository string)
- func GetGitURL(ptrRepo, ptrRepoUser *string) (Password string)
- func GetTargetType(GitStagedFlag, GitTrackedFlag bool) (targetType string)
- func MustGetED() string
- func MustGetWD() string
- func ParseBBURL(bbURL string) (baseurl, path, project string)
- func PathMustExist(path string)
Constants ¶
const ( //Staged is the const for tracking staged files Staged string = "staged" //Tracked is the const for tracking tracked files Tracked string = "tracked" //All is the const for tracking all files All string = "all" )
Variables ¶
This section is empty.
Functions ¶
func GetAlphaNumericValues ¶
GetAlphaNumericValues returns the alphanumeric part of the input string
func GetBBProject ¶
GetBBProject Parse project name from bitbucket URL
func GetConfigDir ¶
func GetConfigDir() (configDir string)
GetConfigDir Determine the operating system and pull the path to the go-earlybird config directory
func GetDisplayList ¶
GetDisplayList Build the string to display an array in a human readable format
func GetEnabledModulesMap ¶
func GetEnabledModulesMap(enableFlags []string, availableModules map[string]string) (enabledModules map[string]string)
GetEnabledModulesMap returns a map of module name to filename enabled by default or explicitly defined with CLI paramters
func GetGitProject ¶
GetGitProject parse project from URL
func GetGitRepo ¶
GetGitRepo Parse repository name from URL
func GetTargetType ¶
GetTargetType returns the file scan context
func MustGetWD ¶
func MustGetWD() string
MustGetWD Get the CWD for the default target Directory or exit
func ParseBBURL ¶
ParseBBURL Parse the base URL, Path and project name from BB URL
Types ¶
This section is empty.