project

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func List

func List(home string) ([]string, error)

List all projects in the given folder

func Update

func Update(home string) error

Update all projects in the given folder

Types

type Project

type Project interface {
	Download() error
	Update() error
	Folder() string
}

Project is basically any kind of project (git, local, svn, bzr, nfs...)

func NewClonedGit

func NewClonedGit(home, folder string) Project

NewClonedGit is a git project that was already cloned, so, only Update will work here.

func NewGit

func NewGit(cwd, repo, version string) Project

NewGit A git project can be any repository in any given branch. It will be downloaded to the provided cwd

func NewLocal

func NewLocal(folder string) Project

NewLocal Returns a local project, which can be any folder you want to

Jump to

Keyboard shortcuts

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