parser

package
v0.0.0-...-d24aa1a Latest Latest
Warning

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

Go to latest
Published: May 24, 2015 License: MIT Imports: 11 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

func NewParser

func NewParser(username, repositoryname string, config *config.Configuration) Parser

Init function to define arguments

func (Parser) AddFilePath

func (p Parser) AddFilePath(filepath string) (*git.Oid, error)

func (*Parser) Clone

func (p *Parser) Clone(repo *github.Repository) error

func (Parser) Commit

func (p Parser) Commit(branch *git.Branch, branchname string, treeId *git.Oid, msg string) error

func (Parser) CommitFile

func (p Parser) CommitFile(branch *git.Branch, branchname string, filename string, contents string, msg string) error

func (Parser) CreateBranch

func (p Parser) CreateBranch(branchname string) (*git.Branch, error)

func (Parser) ForkRepository

func (p Parser) ForkRepository() (*github.Repository, *github.Response, error)

func (*Parser) GetClonedProjectsPath

func (p *Parser) GetClonedProjectsPath() string

func (Parser) GetFileContents

func (p Parser) GetFileContents(filename string) ([]byte, error)

func (Parser) GetReadme

func (p Parser) GetReadme() (string, []byte, error)

func (*Parser) GetRepositoryname

func (p *Parser) GetRepositoryname() string

func (Parser) PullRequest

func (p Parser) PullRequest(branchname, msg, tweet_add string) (*github.PullRequest, error)

func (Parser) ReadLines

func (p Parser) ReadLines(path string) ([]string, error)

readLines reads a whole file into memory and returns a slice of its lines.

Jump to

Keyboard shortcuts

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