project

package
v3.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2017 License: MIT Imports: 8 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func List

func List(home string) (result []string, err 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 New

func New(home, line string) Project

New decides what kind of project it is, based on the given line

func NewClonedGit

func NewClonedGit(home, folderName string) Project

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

func NewGit

func NewGit(cwd, line 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