extractor

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 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
	UserEmails []string
	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