Documentation ¶
Index ¶
- Constants
- Variables
- func Buffer2Slice(stream io.ReadCloser) []string
- func ExecNonFatal(f fn, args ...string)
- func FileExists(fpath string) (bool, os.FileInfo)
- func FileIsExecutable(fpath string) bool
- func MkdirAll(path string, mode int)
- func OneOrLess(args ...string) (string, error)
- func PanicOnError(fmtstr string, err error)
- func PrintError(fmtstr string, err error) error
- func PrintFatal(fmtstr string, err error) error
- func Reverse(input []string) []string
- type BaseTemplate
- type EnvVar
- type Environment
- type Executable
- type Functions
- func (f Functions) Backup(args ...string) ([]string, []string, error)
- func (f Functions) Build(args ...string) ([]string, []string, error)
- func (f Functions) BuildProject(args ...string)
- func (f Functions) Execute(command string, args ...string) ([]string, []string, error)
- func (f Functions) LookupExt(command string) (string, error)
- func (f Functions) Package(args ...string) ([]string, []string, error)
- func (f Functions) Publish(args ...string) ([]string, []string, error)
- func (f Functions) Setup(args ...string) ([]string, []string, error)
- func (f Functions) SetupProject(args ...string)
- func (f Functions) Status(args ...string) ([]string, []string, error)
- func (f Functions) Teardown(args ...string) ([]string, []string, error)
- func (f Functions) Test(args ...string) ([]string, []string, error)
- func (f Functions) Which(command string) string
- type Locations
- type MetaData
- type Project
- func (p *Project) Description(args ...string) string
- func (p Project) IsGoProj() bool
- func (p *Project) Name(args ...string) string
- func (p *Project) Read(reader io.Reader) error
- func (p *Project) ReadFromFile() error
- func (p Project) Save()
- func (p *Project) SetDescription(description string)
- func (p *Project) SetName(name string)
- func (p Project) Write(writer io.Writer) error
- func (p Project) WriteTable(writer io.Writer)
- func (p Project) WriteToFile() error
- type ProjectInfo
- type Targets
- type VCSUrl
Constants ¶
View Source
const (
ProjectName string = "goproj"
)
ProjectName missing godoc.
Variables ¶
View Source
var ( // ErrFileNotFound project not found ErrFileNotFound = errors.New("File not found") // ErrNotFound project not found ErrNotFound = errors.New("Project not found") // ErrDuplicate project is already in list when it should not ErrDuplicate = errors.New("Project already found") // ErrListEmpty missing godoc. ErrListEmpty = errors.New("List is empty") // ErrListTooLong missing godoc. ErrListTooLong = errors.New("List is too long") )
Functions ¶
Types ¶
type BaseTemplate ¶
BaseTemplate template the project was originally based on
type EnvVar ¶
type EnvVar struct { RootPath string `json:"-"` Name string `json:"name"` Paths []string `json:"paths"` }
EnvVar missing godoc.
type Environment ¶
Environment missing godoc.
type Executable ¶
Executable missing godoc.
func NewExecutable ¶
func NewExecutable(command string, extensions ...string) *Executable
NewExecutable missing godoc.
func (*Executable) AppendExt ¶
func (e *Executable) AppendExt(extstr string)
AppendExt missing godoc.
func (Executable) LookupExt ¶
func (e Executable) LookupExt() (string, error)
LookupExt missing godoc.
func (*Executable) PrependExt ¶
func (e *Executable) PrependExt(extstr string)
PrependExt missing godoc.
type Functions ¶
Functions missing godoc.
func (Functions) BuildProject ¶
BuildProject missing godoc.
func (Functions) SetupProject ¶
SetupProject missing godoc.
type Locations ¶
type Locations struct { RootDir string `json:"root"` // contains filtered or unexported fields }
Locations the locations used in the object
func (Locations) BackupDirRotating ¶
BackupDirRotating missing godoc.
type MetaData ¶
type MetaData struct { Project ProjectInfo `json:"project"` BaseTemplate BaseTemplate `json:"basetemplate"` }
MetaData references to other information
type Project ¶
type Project struct { MetaData MetaData `json:"metadata"` Locations Locations `json:"locations"` Targets Targets `json:"targets"` Functions Functions `json:"-"` }
Project the project object
proj := NewProject("/home/foo/project")
func (*Project) Description ¶
Description missing godoc.
func (*Project) SetDescription ¶ added in v0.4.0
func (Project) WriteTable ¶ added in v0.3.0
type ProjectInfo ¶
ProjectInfo basic project info
Click to show internal directories.
Click to hide internal directories.