skel

package
v0.0.0-...-8334bf8 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2015 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(config *Config) error

func RunCli

func RunCli(args []string)

Types

type Config

type Config struct {
	Source Source
	Dest   string
	Name   string

	Data       map[string]string
	OpenEditor bool
}

type DirectorySource

type DirectorySource struct {
	Path string
}

func (*DirectorySource) Cleanup

func (s *DirectorySource) Cleanup() error

func (*DirectorySource) GetLocation

func (s *DirectorySource) GetLocation() (*string, error)

type GithubReleaseSource

type GithubReleaseSource struct {
	Tag   string
	Owner string
	Repo  string
	Name  string
	// contains filtered or unexported fields
}

func (*GithubReleaseSource) Cleanup

func (g *GithubReleaseSource) Cleanup() error

func (*GithubReleaseSource) GetLocation

func (g *GithubReleaseSource) GetLocation() (*string, error)

type Source

type Source interface {
	GetLocation() (*string, error)
	Cleanup() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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