cli

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2016 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const FilePerms = 0755
View Source
const Version = "0.2.1"

Variables

View Source
var (
	ErrInvalidFeatureType = errors.New("invalid -value format. use -value=[0.0-1.0] or [true|false]")
	ErrInvalidRange       = errors.New("invalid -value for percentile. use -value=[0.0-1.0]")
	ErrNameRequired       = errors.New("-name is required")
)

Functions

This section is empty.

Types

type CLI

type CLI struct {
	Ctrl *Controller
}

CLI main CLI runner

func New

func New(ctlr *Controller) (c *CLI)

New init a new CLI

func (*CLI) Commands

func (c *CLI) Commands() []climax.Command

Commands slice of all commands

func (*CLI) Run

func (c *CLI) Run()

Run bind commands and run

type Controller

type Controller struct {
	Config *config.Config
	Client api.ClientIFace
}

func NewController

func NewController(cfg *config.Config, kv api.ClientIFace) (cc *Controller)

func (*Controller) CommitFeatures

func (cc *Controller) CommitFeatures(ft *models.Feature, deleted bool) int

func (*Controller) Delete

func (cc *Controller) Delete(ctx climax.Context) int

func (*Controller) Import

func (cc *Controller) Import(ctx climax.Context) int

func (*Controller) Info

func (cc *Controller) Info(ctx climax.Context) int

func (*Controller) Init

func (cc *Controller) Init(ctx climax.Context) int

func (*Controller) List

func (cc *Controller) List(ctx climax.Context) int

func (*Controller) ParseContext

func (cc *Controller) ParseContext(ctx climax.Context) (*models.Feature, error)

func (*Controller) Serve

func (cc *Controller) Serve(ctx climax.Context) int

func (*Controller) Set

func (cc *Controller) Set(ctx climax.Context) int

func (*Controller) Watch

func (cc *Controller) Watch(ctx climax.Context) int

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

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