Documentation ¶
Index ¶
- type AdditionalWidgetOption
- type ByPath
- type ByStage
- type Container
- type DockerStatusWidget
- func (n *DockerStatusWidget) Activate()
- func (n *DockerStatusWidget) Deactivate()
- func (n *DockerStatusWidget) Disable()
- func (n *DockerStatusWidget) GetGridBufferers() []ui.GridBufferer
- func (n *DockerStatusWidget) GetHeight() int
- func (n *DockerStatusWidget) GetHighlightenPos() int
- func (n *DockerStatusWidget) GetWidth() int
- func (n *DockerStatusWidget) Init() (err error)
- func (n *DockerStatusWidget) IsDisabled() bool
- func (n *DockerStatusWidget) IsReady() bool
- func (n *DockerStatusWidget) SetOption(opt *AdditionalWidgetOption)
- type GitStatusWidget
- func (g *GitStatusWidget) Activate()
- func (g *GitStatusWidget) Deactivate()
- func (g *GitStatusWidget) Disable()
- func (g *GitStatusWidget) GetGridBufferers() []ui.GridBufferer
- func (g *GitStatusWidget) GetHeight() int
- func (g *GitStatusWidget) GetHighlightenPos() int
- func (g *GitStatusWidget) GetWidth() int
- func (g *GitStatusWidget) Init() (err error)
- func (g *GitStatusWidget) IsDisabled() bool
- func (g *GitStatusWidget) IsReady() bool
- func (g *GitStatusWidget) SetOption(opt *AdditionalWidgetOption)
- type GithubIssueWidget
- func (g *GithubIssueWidget) Activate()
- func (g *GithubIssueWidget) Deactivate()
- func (g *GithubIssueWidget) Disable()
- func (g *GithubIssueWidget) GetGridBufferers() []ui.GridBufferer
- func (g *GithubIssueWidget) GetHeight() int
- func (g *GithubIssueWidget) GetHighlightenPos() int
- func (g *GithubIssueWidget) GetWidth() int
- func (g *GithubIssueWidget) Init() (err error)
- func (g *GithubIssueWidget) IsDisabled() bool
- func (g *GithubIssueWidget) IsReady() bool
- func (g *GithubIssueWidget) SetOption(opt *AdditionalWidgetOption)
- type Menu
- type MenuWidget
- func (m *MenuWidget) Activate()
- func (m *MenuWidget) Deactivate()
- func (m *MenuWidget) Disable()
- func (m *MenuWidget) GetGridBufferers() []ui.GridBufferer
- func (m *MenuWidget) GetHeight() int
- func (m *MenuWidget) GetHighlightenPos() int
- func (m *MenuWidget) GetWidth() int
- func (m *MenuWidget) Init() (err error)
- func (m *MenuWidget) IsDisabled() bool
- func (m *MenuWidget) IsReady() bool
- func (m *MenuWidget) SetOption(opt *AdditionalWidgetOption)
- type NoteWidget
- func (n *NoteWidget) Activate()
- func (n *NoteWidget) Deactivate()
- func (n *NoteWidget) Disable()
- func (n *NoteWidget) GetGridBufferers() []ui.GridBufferer
- func (n *NoteWidget) GetHeight() int
- func (n *NoteWidget) GetHighlightenPos() int
- func (n *NoteWidget) GetWidth() int
- func (n *NoteWidget) Init() (err error)
- func (n *NoteWidget) IsDisabled() bool
- func (n *NoteWidget) IsReady() bool
- func (n *NoteWidget) SetOption(opt *AdditionalWidgetOption)
- type Option
- type StatusItem
- type StatusItems
- type TailFileWidget
- func (n *TailFileWidget) Activate()
- func (n *TailFileWidget) Deactivate()
- func (n *TailFileWidget) Disable()
- func (n *TailFileWidget) GetGridBufferers() []ui.GridBufferer
- func (n *TailFileWidget) GetHeight() int
- func (n *TailFileWidget) GetHighlightenPos() int
- func (n *TailFileWidget) GetWidth() int
- func (n *TailFileWidget) Init() (err error)
- func (n *TailFileWidget) IsDisabled() bool
- func (n *TailFileWidget) IsReady() bool
- func (n *TailFileWidget) SetOption(opt *AdditionalWidgetOption)
- type Widgetter
- type WrapperWidget
- func (w *WrapperWidget) Activate()
- func (w *WrapperWidget) Deactivate()
- func (w *WrapperWidget) Disable()
- func (w *WrapperWidget) GetGridBufferers() []ui.GridBufferer
- func (w *WrapperWidget) GetHighlightenPos() int
- func (w *WrapperWidget) GetNeighborIndex(direction string) (idx int)
- func (w *WrapperWidget) Init() (err error)
- func (w *WrapperWidget) Is(wType string) bool
- func (w *WrapperWidget) IsDisabled() bool
- func (w *WrapperWidget) IsReady() bool
- func (w *WrapperWidget) SetOption(opt *AdditionalWidgetOption)
- func (w *WrapperWidget) Vary() (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdditionalWidgetOption ¶
AdditionalWidgetOption is
type DockerStatusWidget ¶
type DockerStatusWidget struct {
// contains filtered or unexported fields
}
DockerStatusWidget is a command launcher
func NewDockerStatusWidget ¶
func NewDockerStatusWidget(opt *Option) (n *DockerStatusWidget, err error)
NewDockerStatusWidget constructs a New DockerStatusWidget
func (*DockerStatusWidget) Activate ¶
func (n *DockerStatusWidget) Activate()
Activate is the implementation of Widget.Activate
func (*DockerStatusWidget) Deactivate ¶
func (n *DockerStatusWidget) Deactivate()
Deactivate is the implementation of Widget.Activate
func (*DockerStatusWidget) GetGridBufferers ¶
func (n *DockerStatusWidget) GetGridBufferers() []ui.GridBufferer
GetGridBufferers is the implementation of widget.Activate
func (*DockerStatusWidget) GetHeight ¶
func (n *DockerStatusWidget) GetHeight() int
GetHeight is the implementation of widget.Init
func (*DockerStatusWidget) GetHighlightenPos ¶
func (n *DockerStatusWidget) GetHighlightenPos() int
GetHighlightenPos is the implementation of Widget.GetHighlightenPos
func (*DockerStatusWidget) GetWidth ¶
func (n *DockerStatusWidget) GetWidth() int
GetWidth is the implementation of widget.Init
func (*DockerStatusWidget) Init ¶ added in v0.9.6
func (n *DockerStatusWidget) Init() (err error)
Init is the implementation of widget.Init
func (*DockerStatusWidget) IsDisabled ¶
func (n *DockerStatusWidget) IsDisabled() bool
IsDisabled is the implementation of Widget.IsDisabled
func (*DockerStatusWidget) IsReady ¶
func (n *DockerStatusWidget) IsReady() bool
IsReady is the implementation of Widget.IsReady
func (*DockerStatusWidget) SetOption ¶
func (n *DockerStatusWidget) SetOption(opt *AdditionalWidgetOption)
SetOption is
type GitStatusWidget ¶
type GitStatusWidget struct {
// contains filtered or unexported fields
}
GitStatusWidget is a command launcher
func NewGitStatusWidget ¶
func NewGitStatusWidget(opt *Option) (g *GitStatusWidget, err error)
NewGitStatusWidget constructs a New GitStatusWidget
func (*GitStatusWidget) Activate ¶
func (g *GitStatusWidget) Activate()
Activate is the implementation of Widget.Activate
func (*GitStatusWidget) Deactivate ¶
func (g *GitStatusWidget) Deactivate()
Deactivate is the implementation of Widget.Activate
func (*GitStatusWidget) GetGridBufferers ¶
func (g *GitStatusWidget) GetGridBufferers() []ui.GridBufferer
GetGridBufferers is the implementation of widget.Activate
func (*GitStatusWidget) GetHeight ¶
func (g *GitStatusWidget) GetHeight() int
GetHeight is the implementation of widget.Init
func (*GitStatusWidget) GetHighlightenPos ¶
func (g *GitStatusWidget) GetHighlightenPos() int
GetHighlightenPos is the implementation of Widget.GetHighlightenPos
func (*GitStatusWidget) GetWidth ¶
func (g *GitStatusWidget) GetWidth() int
GetWidth is the implementation of widget.Init
func (*GitStatusWidget) Init ¶ added in v0.9.6
func (g *GitStatusWidget) Init() (err error)
Init is the implementation of widget.Init
func (*GitStatusWidget) IsDisabled ¶
func (g *GitStatusWidget) IsDisabled() bool
IsDisabled is the implementation of Widget.IsDisabled
func (*GitStatusWidget) IsReady ¶
func (g *GitStatusWidget) IsReady() bool
IsReady is the implementation of Widget.IsReady
func (*GitStatusWidget) SetOption ¶
func (g *GitStatusWidget) SetOption(opt *AdditionalWidgetOption)
SetOption is
type GithubIssueWidget ¶
type GithubIssueWidget struct {
// contains filtered or unexported fields
}
GithubIssueWidget is a stack which shows a issue of the current branch referering its name including issue id
func NewGithubIssueWidget ¶
func NewGithubIssueWidget(opt *Option) (g *GithubIssueWidget, err error)
NewGithubIssueWidget constructs a New GithubIssueWidget
func (*GithubIssueWidget) Activate ¶
func (g *GithubIssueWidget) Activate()
Activate is the implementation of Widget.Activate
func (*GithubIssueWidget) Deactivate ¶
func (g *GithubIssueWidget) Deactivate()
Deactivate is the implementation of Widget.Deactivate
func (*GithubIssueWidget) Disable ¶
func (g *GithubIssueWidget) Disable()
Disable sets a GithubIssueWidget instance as disabled
func (*GithubIssueWidget) GetGridBufferers ¶
func (g *GithubIssueWidget) GetGridBufferers() []ui.GridBufferer
GetGridBufferers is the implementation of Widget.Activate
func (*GithubIssueWidget) GetHeight ¶
func (g *GithubIssueWidget) GetHeight() int
GetHeight is the implementation of stack.Init
func (*GithubIssueWidget) GetHighlightenPos ¶
func (g *GithubIssueWidget) GetHighlightenPos() int
GetHighlightenPos is the implementation of Widget.GetHighlightenPos
func (*GithubIssueWidget) GetWidth ¶
func (g *GithubIssueWidget) GetWidth() int
GetWidth is the implementation of stack.Init
func (*GithubIssueWidget) Init ¶ added in v0.9.6
func (g *GithubIssueWidget) Init() (err error)
Init renders the issue contents
func (*GithubIssueWidget) IsDisabled ¶
func (g *GithubIssueWidget) IsDisabled() bool
IsDisabled is the implementation of Widget.IsDisabled
func (*GithubIssueWidget) IsReady ¶
func (g *GithubIssueWidget) IsReady() bool
IsReady is the implementation of Widget.IsReady
func (*GithubIssueWidget) SetOption ¶
func (g *GithubIssueWidget) SetOption(opt *AdditionalWidgetOption)
SetOption is
type MenuWidget ¶
type MenuWidget struct {
// contains filtered or unexported fields
}
MenuWidget is a command launcher
func NewMenuWidget ¶
func NewMenuWidget(opt *Option) (m *MenuWidget, err error)
NewMenuWidget constructs a New MenuWidget
func (*MenuWidget) Activate ¶
func (m *MenuWidget) Activate()
Activate is the implementation of Widget.Activate
func (*MenuWidget) Deactivate ¶
func (m *MenuWidget) Deactivate()
Deactivate is the implementation of Widget.Activate
func (*MenuWidget) GetGridBufferers ¶
func (m *MenuWidget) GetGridBufferers() []ui.GridBufferer
GetGridBufferers is the implementation of stack.Activate
func (*MenuWidget) GetHeight ¶
func (m *MenuWidget) GetHeight() int
GetHeight is the implementation of stack.Init
func (*MenuWidget) GetHighlightenPos ¶
func (m *MenuWidget) GetHighlightenPos() int
GetHighlightenPos is the implementation of Widget.GetHighlightenPos
func (*MenuWidget) GetWidth ¶
func (m *MenuWidget) GetWidth() int
GetWidth is the implementation of stack.Init
func (*MenuWidget) Init ¶ added in v0.9.6
func (m *MenuWidget) Init() (err error)
Init is the implementation of stack.Init
func (*MenuWidget) IsDisabled ¶
func (m *MenuWidget) IsDisabled() bool
IsDisabled is the implementation of Widget.IsDisabled
func (*MenuWidget) IsReady ¶
func (m *MenuWidget) IsReady() bool
IsReady is the implementation of Widget.IsReady
func (*MenuWidget) SetOption ¶
func (m *MenuWidget) SetOption(opt *AdditionalWidgetOption)
SetOption is
type NoteWidget ¶
type NoteWidget struct {
// contains filtered or unexported fields
}
NoteWidget is a command launcher
func NewNoteWidget ¶
func NewNoteWidget(opt *Option) (n *NoteWidget, err error)
NewNoteWidget constructs a New NoteWidget
func (*NoteWidget) Activate ¶
func (n *NoteWidget) Activate()
Activate is the implementation of Widget.Activate
func (*NoteWidget) Deactivate ¶
func (n *NoteWidget) Deactivate()
Deactivate is the implementation of Widget.Activate
func (*NoteWidget) GetGridBufferers ¶
func (n *NoteWidget) GetGridBufferers() []ui.GridBufferer
GetGridBufferers is the implementation of stack.Activate
func (*NoteWidget) GetHeight ¶
func (n *NoteWidget) GetHeight() int
GetHeight is the implementation of stack.Init
func (*NoteWidget) GetHighlightenPos ¶
func (n *NoteWidget) GetHighlightenPos() int
GetHighlightenPos is the implementation of Widget.GetHighlightenPos
func (*NoteWidget) GetWidth ¶
func (n *NoteWidget) GetWidth() int
GetWidth is the implementation of stack.Init
func (*NoteWidget) Init ¶ added in v0.9.6
func (n *NoteWidget) Init() (err error)
Init is the implementation of stack.Init
func (*NoteWidget) IsDisabled ¶
func (n *NoteWidget) IsDisabled() bool
IsDisabled is the implementation of Widget.IsDisabled
func (*NoteWidget) IsReady ¶
func (n *NoteWidget) IsReady() bool
IsReady is the implementation of Widget.IsReady
func (*NoteWidget) SetOption ¶
func (n *NoteWidget) SetOption(opt *AdditionalWidgetOption)
SetOption is
type Option ¶
type Option struct { Envs []map[string]string ExecPath string Timezone string Content interface{} IssueRegex string Height int Width int Title string Type string Path string }
Option defines options for each type of widgets
type StatusItem ¶
StatusItem is a struct which stores each file status of git status
type StatusItems ¶
type StatusItems []StatusItem
StatusItems is a collection of StatusItem, and implements sorting
type TailFileWidget ¶
type TailFileWidget struct {
// contains filtered or unexported fields
}
TailFileWidget is a command launcher
func NewTailFileWidget ¶
func NewTailFileWidget(opt *Option) (n *TailFileWidget, err error)
NewTailFileWidget constructs a New TailFileWidget
func (*TailFileWidget) Activate ¶
func (n *TailFileWidget) Activate()
Activate is the implementation of Widget.Activate
func (*TailFileWidget) Deactivate ¶
func (n *TailFileWidget) Deactivate()
Deactivate is the implementation of Widget.Activate
func (*TailFileWidget) GetGridBufferers ¶
func (n *TailFileWidget) GetGridBufferers() []ui.GridBufferer
GetGridBufferers is the implementation of stack.Activate
func (*TailFileWidget) GetHeight ¶
func (n *TailFileWidget) GetHeight() int
GetHeight is the implementation of stack.Init
func (*TailFileWidget) GetHighlightenPos ¶
func (n *TailFileWidget) GetHighlightenPos() int
GetHighlightenPos is the implementation of Widget.GetHighlightenPos
func (*TailFileWidget) GetWidth ¶
func (n *TailFileWidget) GetWidth() int
GetWidth is the implementation of stack.Init
func (*TailFileWidget) Init ¶ added in v0.9.6
func (n *TailFileWidget) Init() (err error)
Init is the implementation of stack.Init
func (*TailFileWidget) IsDisabled ¶
func (n *TailFileWidget) IsDisabled() bool
IsDisabled is the implementation of Widget.IsDisabled
func (*TailFileWidget) IsReady ¶
func (n *TailFileWidget) IsReady() bool
IsReady is the implementation of Widget.IsReady
func (*TailFileWidget) SetOption ¶
func (n *TailFileWidget) SetOption(opt *AdditionalWidgetOption)
SetOption is
type Widgetter ¶
type Widgetter interface { Activate() Deactivate() Disable() SetOption(opt *AdditionalWidgetOption) IsDisabled() bool IsReady() bool GetGridBufferers() []ui.GridBufferer GetHighlightenPos() int Init() error }
Widgetter define common interface for each widgets
type WrapperWidget ¶
type WrapperWidget struct { Index int WidgetType string Tab int Title string Rectangle *vector.Rectangle Envs []map[string]string ExecPath string Timezone string Content interface{} IssueRegex string Type string Path string // contains filtered or unexported fields }
WrapperWidget is
func (*WrapperWidget) GetGridBufferers ¶
func (w *WrapperWidget) GetGridBufferers() []ui.GridBufferer
GetGridBufferers is
func (*WrapperWidget) GetHighlightenPos ¶
func (w *WrapperWidget) GetHighlightenPos() int
GetHighlightenPos is
func (*WrapperWidget) GetNeighborIndex ¶
func (w *WrapperWidget) GetNeighborIndex(direction string) (idx int)
GetNeighborIndex is
func (*WrapperWidget) SetOption ¶
func (w *WrapperWidget) SetOption(opt *AdditionalWidgetOption)
SetOption is