Documentation
¶
Index ¶
- Variables
- func WorkingDir() string
- type Blueprint
- func (h *Blueprint) Add(params *cli.Context) error
- func (h *Blueprint) Clean()
- func (h *Blueprint) Create() error
- func (h *Blueprint) Fast(params *cli.Context) error
- func (h *Blueprint) Insert(params *cli.Context) error
- func (h *Blueprint) List() error
- func (h *Blueprint) Read() error
- func (h *Blueprint) Remove(params *cli.Context) error
- func (h *Blueprint) Run() error
- type Buffer
- type BufferOut
- type Project
- func (p *Project) Cmd(cmds []string) (errors []error)
- func (p *Project) GoBuild() (string, error)
- func (p *Project) GoFmt(path string) (io.Writer, error)
- func (p *Project) GoInstall() (string, error)
- func (p *Project) GoRun(channel chan bool, runner chan bool, wr *sync.WaitGroup) error
- func (p *Project) GoTest(path string) (io.Writer, error)
- type Watcher
Constants ¶
This section is empty.
Variables ¶
View Source
var Green, Red, RedS, Blue, BlueS, Yellow, YellowS, Magenta, MagentaS = color.New(color.FgGreen, color.Bold).SprintFunc(),
color.New(color.FgRed, color.Bold).SprintFunc(),
color.New(color.FgRed).SprintFunc(),
color.New(color.FgBlue, color.Bold).SprintFunc(),
color.New(color.FgBlue).SprintFunc(),
color.New(color.FgYellow, color.Bold).SprintFunc(),
color.New(color.FgYellow).SprintFunc(),
color.New(color.FgMagenta, color.Bold).SprintFunc(),
color.New(color.FgMagenta).SprintFunc()
Functions ¶
func WorkingDir ¶
func WorkingDir() string
WorkingDir returns the name last element of the working directory path
Types ¶
type Blueprint ¶
type Blueprint struct {
Projects []Project `yaml:"projects,omitempty"`
Files map[string]string `yaml:"-"`
Sync chan string `yaml:"-"`
}
Projects struct contains a projects list
func (*Blueprint) Fast ¶
Fast method run a project from his working directory without makes a config file
type Project ¶
type Project struct {
LastChangedOn time.Time `yaml:"-"`
Name string `yaml:"app_name,omitempty"`
Path string `yaml:"app_path,omitempty"`
Run bool `yaml:"app_run,omitempty"`
Bin bool `yaml:"app_bin,omitempty"`
Build bool `yaml:"app_build,omitempty"`
Fmt bool `yaml:"app_fmt,omitempty"`
Test bool `yaml:"app_test,omitempty"`
Params []string `yaml:"app_params,omitempty"`
Watcher Watcher `yaml:"app_watcher,omitempty"`
Buffer Buffer `yaml:"-"`
// contains filtered or unexported fields
}
Project defines the informations of a single project
type Watcher ¶
type Watcher struct {
// different before and after on re-run?
Before []string `yaml:"before,omitempty"`
After []string `yaml:"after,omitempty"`
Paths []string `yaml:"paths,omitempty"`
Ignore []string `yaml:"ignore_paths,omitempty"`
Exts []string `yaml:"exts,omitempty"`
Preview bool `yaml:"preview,omitempty"`
Output map[string]bool `yaml:"output,omitempty"`
}
Watcher struct defines the livereload's logic
Click to show internal directories.
Click to hide internal directories.