extractor

package
v0.0.0-...-c95f2f5 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2021 License: MIT Imports: 27 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 Ivolution

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
	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