command

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2015 License: MPL-2.0 Imports: 23 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrRequestFailed = errors.New("Couldn't reach background service, did you install it using 'glass install'?")
View Source
var ErrTimerNotFound = errors.New("Couldn't find timer for this project, did you start one using 'glass init' or 'glass start'?")

Functions

This section is empty.

Types

type Client

type Client struct {
	*http.Client
	// contains filtered or unexported fields
}

func NewClient

func NewClient() *Client

func (*Client) Call

func (c *Client) Call(method string, params url.Values) ([]byte, error)

func (*Client) CreateTimer

func (c *Client) CreateTimer(dir string) error

func (*Client) DeleteTimer

func (c *Client) DeleteTimer(dir string) error

func (*Client) Info

func (c *Client) Info() (map[string]interface{}, error)

func (*Client) PauseTimer

func (c *Client) PauseTimer(dir string) error

func (*Client) ReadTimer

func (c *Client) ReadTimer(dir string) (*timer.Timer, error)

func (*Client) ResetTimer

func (c *Client) ResetTimer(dir string, staged, unstaged bool) error

func (*Client) StageTimer added in v0.6.1

func (c *Client) StageTimer(dir string, files map[string]*vcs.StagedFile) error

type Init

type Init struct {
	// contains filtered or unexported fields
}

func NewInit

func NewInit() *Init

func (*Init) Action

func (c *Init) Action() func(ctx *cli.Context)

func (*Init) Description

func (c *Init) Description() string

func (*Init) Flags

func (c *Init) Flags() []cli.Flag

func (*Init) Name

func (c *Init) Name() string

func (*Init) Run

func (c *Init) Run(ctx *cli.Context) error

func (*Init) Usage

func (c *Init) Usage() string

type Install

type Install struct {
	// contains filtered or unexported fields
}

func NewInstall

func NewInstall() *Install

func (*Install) Action

func (c *Install) Action() func(ctx *cli.Context)

func (*Install) Description

func (c *Install) Description() string

func (*Install) Flags

func (c *Install) Flags() []cli.Flag

func (*Install) Name

func (c *Install) Name() string

func (*Install) Run

func (c *Install) Run(ctx *cli.Context) error

func (*Install) Usage

func (c *Install) Usage() string

type Pause

type Pause struct {
	// contains filtered or unexported fields
}

func NewPause

func NewPause() *Pause

func (*Pause) Action

func (c *Pause) Action() func(ctx *cli.Context)

func (*Pause) Description

func (c *Pause) Description() string

func (*Pause) Flags

func (c *Pause) Flags() []cli.Flag

func (*Pause) Name

func (c *Pause) Name() string

func (*Pause) Run

func (c *Pause) Run(ctx *cli.Context) error

func (*Pause) Usage

func (c *Pause) Usage() string

type Pull

type Pull struct {
	// contains filtered or unexported fields
}

func NewPull

func NewPull() *Pull

func (*Pull) Action

func (c *Pull) Action() func(ctx *cli.Context)

func (*Pull) Description

func (c *Pull) Description() string

func (*Pull) Flags

func (c *Pull) Flags() []cli.Flag

func (*Pull) Name

func (c *Pull) Name() string

func (*Pull) Run

func (c *Pull) Run(ctx *cli.Context) error

func (*Pull) Usage

func (c *Pull) Usage() string

type Punch

type Punch struct {
	// contains filtered or unexported fields
}

func NewPunch

func NewPunch() *Punch

func (*Punch) Action

func (c *Punch) Action() func(ctx *cli.Context)

func (*Punch) Description

func (c *Punch) Description() string

func (*Punch) Flags

func (c *Punch) Flags() []cli.Flag

func (*Punch) Name

func (c *Punch) Name() string

func (*Punch) Run

func (c *Punch) Run(ctx *cli.Context) error

func (*Punch) Usage

func (c *Punch) Usage() string

type Push

type Push struct {
	// contains filtered or unexported fields
}

func NewPush

func NewPush() *Push

func (*Push) Action

func (c *Push) Action() func(ctx *cli.Context)

func (*Push) Description

func (c *Push) Description() string

func (*Push) Flags

func (c *Push) Flags() []cli.Flag

func (*Push) Name

func (c *Push) Name() string

func (*Push) Run

func (c *Push) Run(ctx *cli.Context) error

func (*Push) Usage

func (c *Push) Usage() string

type Reset

type Reset struct {
	// contains filtered or unexported fields
}

func NewReset

func NewReset() *Reset

func (*Reset) Action

func (c *Reset) Action() func(ctx *cli.Context)

func (*Reset) Description

func (c *Reset) Description() string

func (*Reset) Flags

func (c *Reset) Flags() []cli.Flag

func (*Reset) Name

func (c *Reset) Name() string

func (*Reset) Run

func (c *Reset) Run(ctx *cli.Context) error

func (*Reset) Usage

func (c *Reset) Usage() string

type Stage added in v0.6.1

type Stage struct {
	// contains filtered or unexported fields
}

func NewStage added in v0.6.1

func NewStage() *Stage

func (*Stage) Action added in v0.6.1

func (c *Stage) Action() func(ctx *cli.Context)

func (*Stage) Description added in v0.6.1

func (c *Stage) Description() string

func (*Stage) Flags added in v0.6.1

func (c *Stage) Flags() []cli.Flag

func (*Stage) Name added in v0.6.1

func (c *Stage) Name() string

func (*Stage) Run added in v0.6.1

func (c *Stage) Run(ctx *cli.Context) error

func (*Stage) Usage added in v0.6.1

func (c *Stage) Usage() string

type Start

type Start struct {
	// contains filtered or unexported fields
}

func NewStart

func NewStart() *Start

func (*Start) Action

func (c *Start) Action() func(ctx *cli.Context)

func (*Start) Description

func (c *Start) Description() string

func (*Start) Flags

func (c *Start) Flags() []cli.Flag

func (*Start) Name

func (c *Start) Name() string

func (*Start) Run

func (c *Start) Run(ctx *cli.Context) error

func (*Start) Usage

func (c *Start) Usage() string

type Status

type Status struct {
	// contains filtered or unexported fields
}

func NewStatus

func NewStatus() *Status

func (*Status) Action

func (c *Status) Action() func(ctx *cli.Context)

func (*Status) Description

func (c *Status) Description() string

func (*Status) Flags

func (c *Status) Flags() []cli.Flag

func (*Status) Name

func (c *Status) Name() string

func (*Status) Run

func (c *Status) Run(ctx *cli.Context) error

func (*Status) Usage

func (c *Status) Usage() string

type Stop

type Stop struct {
	// contains filtered or unexported fields
}

func NewStop

func NewStop() *Stop

func (*Stop) Action

func (c *Stop) Action() func(ctx *cli.Context)

func (*Stop) Description

func (c *Stop) Description() string

func (*Stop) Flags

func (c *Stop) Flags() []cli.Flag

func (*Stop) Name

func (c *Stop) Name() string

func (*Stop) Run

func (c *Stop) Run(ctx *cli.Context) error

func (*Stop) Usage

func (c *Stop) Usage() string

type Sum

type Sum struct {
	// contains filtered or unexported fields
}

func NewSum

func NewSum() *Sum

func (*Sum) Action

func (c *Sum) Action() func(ctx *cli.Context)

func (*Sum) Description

func (c *Sum) Description() string

func (*Sum) Flags

func (c *Sum) Flags() []cli.Flag

func (*Sum) Name

func (c *Sum) Name() string

func (*Sum) Run

func (c *Sum) Run(ctx *cli.Context) error

func (*Sum) Usage

func (c *Sum) Usage() string

type Uninstall

type Uninstall struct {
	// contains filtered or unexported fields
}

func NewUninstall

func NewUninstall() *Uninstall

func (*Uninstall) Action

func (c *Uninstall) Action() func(ctx *cli.Context)

func (*Uninstall) Description

func (c *Uninstall) Description() string

func (*Uninstall) Flags

func (c *Uninstall) Flags() []cli.Flag

func (*Uninstall) Name

func (c *Uninstall) Name() string

func (*Uninstall) Run

func (c *Uninstall) Run(ctx *cli.Context) error

func (*Uninstall) Usage

func (c *Uninstall) Usage() string

type Unstage added in v0.6.1

type Unstage struct {
	// contains filtered or unexported fields
}

func NewUnstage added in v0.6.1

func NewUnstage() *Unstage

func (*Unstage) Action added in v0.6.1

func (c *Unstage) Action() func(ctx *cli.Context)

func (*Unstage) Description added in v0.6.1

func (c *Unstage) Description() string

func (*Unstage) Flags added in v0.6.1

func (c *Unstage) Flags() []cli.Flag

func (*Unstage) Name added in v0.6.1

func (c *Unstage) Name() string

func (*Unstage) Run added in v0.6.1

func (c *Unstage) Run(ctx *cli.Context) error

func (*Unstage) Usage added in v0.6.1

func (c *Unstage) Usage() string

Jump to

Keyboard shortcuts

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