vega

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const DockerfileName string = "Dockerfile"

DockerfileName: Default dockerfile name used in starterkits

Variables

View Source
var ErrStarterKitNotFoundInRepo = errors.New("starterkit not found")

ErrStarterKitNotFoundInRepo is the error returned when a starterkit is not found in a starterkits

Functions

func CheckForLatestVersion added in v1.0.1

func CheckForLatestVersion()

CheckForLatestVersion checks for latest releases

Types

type GitHooks added in v1.0.1

type GitHooks struct {
	Home Home
	URL  string
	Dir  string // hooks directory name at source/remote
	Out  io.Writer
}

func (*GitHooks) Add added in v1.0.1

func (gitHook *GitHooks) Add()

Add downloads git hooks to vega home

func (*GitHooks) Install added in v1.0.1

func (gitHook *GitHooks) Install(path string)

Install installs Git Hooks to a git based project path

func (*GitHooks) InstallGlobally added in v1.0.2

func (gitHook *GitHooks) InstallGlobally()

InstallGlobally installs Git Hooks as Global Git Hooks

type Home

type Home string

This builds paths relative to a Vega Home directory.

func (Home) GitHooks added in v1.0.1

func (home Home) GitHooks() string

func (Home) Logs

func (home Home) Logs() string

func (Home) Path

func (home Home) Path(elements ...string) string

func (Home) StarterKits

func (home Home) StarterKits() string

func (Home) String

func (home Home) String() string

type StarterKit

type StarterKit struct {
	Name string
	Path string
}

StarterKit represents a starterkit repository.

func (*StarterKit) Create

func (sk *StarterKit) Create(dest string) error

Create creates a new project at dest from given starter kit

func (*StarterKit) Install added in v1.0.4

func (sk *StarterKit) Install(dest string) error

Install installs a starterkit at existing project

type StarterKitRepo

type StarterKitRepo struct {
	Name string
	Path string // local absolute path to repo
	Home Home
	URL  string
	Dir  string // starterkits directory name at source/remote
}

func RepoList

func RepoList(path string) ([]StarterKitRepo, error)

RepoList list of all the local Repositories

func (*StarterKitRepo) Add

func (repo *StarterKitRepo) Add()

Add adds repo and starterkits to vega

func (StarterKitRepo) Delete

func (repo StarterKitRepo) Delete()

Delete deletes the starterkit repo

func (*StarterKitRepo) Find

func (repo *StarterKitRepo) Find(name string) ([]StarterKit, error)

Find returns the starterkits matching with the given name

func (*StarterKitRepo) StarterKitList

func (repo *StarterKitRepo) StarterKitList() (StarterKits, error)

StarterKitList Gets the list of all StarterKits for given repo.

type StarterKitRepos

type StarterKitRepos []StarterKitRepo

type StarterKits

type StarterKits []StarterKit

Jump to

Keyboard shortcuts

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