Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RepoExtractor ¶
type RepoExtractor struct { RepoPath string OutputPath string GitPath string Headless bool Obfuscate bool ShowProgressBar bool // If it is false there is no progress bar. SkipLibraries bool // If it is false there is no library detection. UserEmails []string OverwrittenRepoName string // If set this will be used instead of the original repo name TimeLimit time.Duration // If set the extraction will be stopped after the given time limit and the partial result will be uploaded Seed []string // contains filtered or unexported fields }
RepoExtractor is responsible for all parts of repo extraction process Including cloning the repo, processing the commits and uploading the results
func (*RepoExtractor) Extract ¶
func (r *RepoExtractor) Extract() error
Extract a single repo in the path
func (*RepoExtractor) GetRepoName ¶
func (r *RepoExtractor) GetRepoName(remoteOrigin string) string
GetRepoName gets the repo name in the following format: in case of headless: "owner_name/repo_name" in case of interactive mode: "repo_name"
Click to show internal directories.
Click to hide internal directories.