vidar: github.com/nelsam/vidar/command/project Index | Files

package project

import "github.com/nelsam/vidar/command/project"

Index

Package Files

add.go bindables.go find.go open.go

func Bindables Uses

func Bindables(driver gxui.Driver, theme *basic.Theme) []bind.Bindable

Bindables returns all bindables that relate to projects.

type Add Uses

type Add struct {
    status.General
    // contains filtered or unexported fields
}

func NewAdd Uses

func NewAdd(driver gxui.Driver, theme *basic.Theme) *Add

func (*Add) Defaults Uses

func (p *Add) Defaults() []fmt.Stringer

func (*Add) Exec Uses

func (p *Add) Exec() error

func (*Add) Init Uses

func (p *Add) Init(driver gxui.Driver, theme *basic.Theme)

func (*Add) Menu Uses

func (p *Add) Menu() string

func (*Add) Name Uses

func (p *Add) Name() string

func (*Add) Next Uses

func (p *Add) Next() gxui.Focusable

func (*Add) Project Uses

func (p *Add) Project() setting.Project

func (*Add) Reset Uses

func (p *Add) Reset()

func (*Add) Start Uses

func (p *Add) Start(control gxui.Control) gxui.Control

func (*Add) Store Uses

func (p *Add) Store(e interface{}) bind.Status

type Adder Uses

type Adder interface {
    Add(setting.Project)
}

type Binder Uses

type Binder interface {
    Pop() []bind.Bindable
    Execute(bind.Bindable)
}

A Binder is a type which can bind bindables

type Executor Uses

type Executor interface {
    Execute(bind.Bindable)
}

An Executor can execute bindables

type Find Uses

type Find struct {
    status.General
    // contains filtered or unexported fields
}

func NewFind Uses

func NewFind(theme gxui.Theme) *Find

func (*Find) Defaults Uses

func (p *Find) Defaults() []fmt.Stringer

func (*Find) Exec Uses

func (p *Find) Exec() error

func (*Find) Menu Uses

func (p *Find) Menu() string

func (*Find) Name Uses

func (p *Find) Name() string

func (*Find) Next Uses

func (p *Find) Next() gxui.Focusable

func (*Find) Reset Uses

func (p *Find) Reset()

func (*Find) Start Uses

func (p *Find) Start(gxui.Control) gxui.Control

func (*Find) Store Uses

func (p *Find) Store(elem interface{}) bind.Status

type Focuser Uses

type Focuser interface {
    For(...focus.Opt) bind.Bindable
}

A Focuser is used to focus elements.

type Open Uses

type Open struct {
    status.General
    // contains filtered or unexported fields
}

Open is an op that will open a project.

func (*Open) Exec Uses

func (o *Open) Exec() error

func (*Open) For Uses

func (o *Open) For(opts ...Opt) bind.Bindable

func (*Open) Name Uses

func (o *Open) Name() string

func (*Open) Reset Uses

func (o *Open) Reset()

func (*Open) Store Uses

func (o *Open) Store(e interface{}) bind.Status

type Opt Uses

type Opt func(*Open) error

An Opt is a type that can be used to modify Open ops.

func Name Uses

func Name(name string) Opt

func Project Uses

func Project(p setting.Project) Opt

type ProjectSetter Uses

type ProjectSetter interface {
    SetProject(setting.Project)
}

ProjectSetter is any element that needs to be informed about the project being set.

Package project imports 13 packages (graph) and is imported by 2 packages. Updated 2020-01-17. Refresh now. Tools for package owners.