extractor

package
v2.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2021 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Upload

func Upload(path, repoName string) (string, error)

Upload result to CodersRAnk

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"

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL