cli

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2016 License: GPL-3.0 Imports: 17 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blueprint

type Blueprint struct {
	*c.Settings `yaml:"-"`
	Projects    []Project   `yaml:"projects,omitempty" json:"projects,omitempty"`
	Sync        chan string `yaml:"-"`
}

Projects struct contains a projects list

func (*Blueprint) Add

func (h *Blueprint) Add(p *cli.Context) error

Add a new project

func (*Blueprint) Clean

func (h *Blueprint) Clean()

Clean duplicate projects

func (*Blueprint) Insert

func (h *Blueprint) Insert(p *cli.Context) error

Inserts a new project in the list

func (*Blueprint) List

func (h *Blueprint) List() error

List of all the projects

func (*Blueprint) Remove

func (h *Blueprint) Remove(p *cli.Context) error

Remove a project

func (*Blueprint) Run

func (h *Blueprint) Run() error

Watch method adds the given paths on the Watcher

type Buffer

type Buffer struct {
	StdOut []BufferOut `json:"stdOut"`
	StdLog []BufferOut `json:"stdLog"`
	StdErr []BufferOut `json:"stdErr"`
}

Buffer struct for buffering outputs

type BufferOut

type BufferOut struct {
	Time   time.Time `json:"time"`
	Text   string    `json:"text"`
	Path   string    `json:"path"`
	Type   string    `json:"type"`
	Stream string    `json:"stream"`
	Errors []string  `json:"errors"`
}

type Cli

type Cli struct {
	Streams bool `yaml:"streams" json:"streams"`
}

type File

type File struct {
	Streams bool `yaml:"streams" json:"streams"`
	Logs    bool `yaml:"logs" json:"logs"`
	Errors  bool `yaml:"errors" json:"errors"`
}

type Project

type Project struct {
	c.Settings    `yaml:"-"`
	LastChangedOn time.Time `yaml:"-" json:"-"`

	Name     string   `yaml:"name" json:"name"`
	Path     string   `yaml:"path" json:"path"`
	Run      bool     `yaml:"run" json:"run"`
	Bin      bool     `yaml:"bin" json:"bin"`
	Generate bool     `yaml:"generate" json:"generate"`
	Build    bool     `yaml:"build" json:"build"`
	Fmt      bool     `yaml:"fmt" json:"fmt"`
	Test     bool     `yaml:"test" json:"test"`
	Params   []string `yaml:"params" json:"params"`
	Watcher  Watcher  `yaml:"watcher" json:"watcher"`
	Cli      Cli      `yaml:"cli" json:"cli"`
	File     File     `yaml:"file" json:"file"`
	Buffer   Buffer   `yaml:"-" json:"buffer"`
	// 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" json:"before"`
	After   []string `yaml:"after" json:"after"`
	Paths   []string `yaml:"paths" json:"paths"`
	Ignore  []string `yaml:"ignore_paths" json:"ignore"`
	Exts    []string `yaml:"exts" json:"exts"`
	Preview bool     `yaml:"preview" json:"preview"`
}

Watcher struct defines the livereload's logic

Jump to

Keyboard shortcuts

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