Documentation ¶
Index ¶
- Constants
- func FetchJiraTicket(id string) (interface{}, error)
- func HelpTextAsStrings(data interface{}, templateName string) []string
- func JiraQueryAsStrings(query string, templateName string) []string
- func JiraTicketAsStrings(data interface{}, templateName string) []string
- func Run()
- func RunExternalCommand(fn func() error) error
- func WrapText(lines []string, maxWidth uint) []string
- type BaseInputBox
- type BaseListPage
- func (p *BaseListPage) BottomOfPage()
- func (p *BaseListPage) Create()
- func (p *BaseListPage) Id() string
- func (p *BaseListPage) IsPopulated() bool
- func (p *BaseListPage) NextLine(n int)
- func (p *BaseListPage) NextPage()
- func (p *BaseListPage) NextPara()
- func (p *BaseListPage) PageLines() int
- func (p *BaseListPage) PreviousLine(n int)
- func (p *BaseListPage) PreviousPage()
- func (p *BaseListPage) PreviousPara()
- func (p *BaseListPage) Refresh()
- func (p *BaseListPage) SetSearch(searchCommand string)
- func (p *BaseListPage) TopOfPage()
- func (p *BaseListPage) Update()
- type CommandBar
- type CommandBarFragment
- type CommandBoxer
- type EditBox
- func (eb *EditBox) DeleteRuneBackward()
- func (eb *EditBox) InsertRune(r rune)
- func (eb *EditBox) MoveCursorOneRuneBackward()
- func (eb *EditBox) MoveCursorOneRuneForward()
- func (eb *EditBox) MoveCursorTo(boffset int)
- func (eb *EditBox) MoveCursorToEnd()
- func (eb *EditBox) RuneBeforeCursor() (rune, int)
- func (eb *EditBox) RuneUnderCursor() (rune, int)
- type EditPager
- type GoBacker
- type HelpPage
- type ItemSelecter
- type LabelListPage
- type Navigable
- type NextTicketer
- type PagePager
- type PasswordInputBox
- type PrevTicketer
- type Query
- type QueryPage
- type Refresher
- type ScrollableList
- func (sl *ScrollableList) Add(s string)
- func (sl *ScrollableList) Buffer() ui.Buffer
- func (sl *ScrollableList) CursorDown()
- func (sl *ScrollableList) CursorDownLines(n int)
- func (sl *ScrollableList) CursorUp()
- func (sl *ScrollableList) CursorUpLines(n int)
- func (sl *ScrollableList) PageDown()
- func (sl *ScrollableList) PageUp()
- func (sl *ScrollableList) ScrollDown()
- func (sl *ScrollableList) ScrollToBottom()
- func (sl *ScrollableList) ScrollToTop()
- func (sl *ScrollableList) ScrollUp()
- func (sl *ScrollableList) SetCursorLine(n int)
- func (sl *ScrollableList) SilentCursorDownLines(n int)
- func (sl *ScrollableList) SilentCursorUpLines(n int)
- type Search
- type Searcher
- type Sort
- type SortOrderPage
- type StatusBar
- type StatusBarFragment
- type TicketCommander
- type TicketCommenter
- type TicketEditer
- type TicketListPage
- func (p *TicketListPage) ActiveTicketId() string
- func (p *TicketListPage) Create()
- func (p *TicketListPage) EditTicket()
- func (p *TicketListPage) GetSelectedTicketId() string
- func (p *TicketListPage) GoBack()
- func (p *TicketListPage) Refresh()
- func (p *TicketListPage) Search()
- func (p *TicketListPage) SelectItem()
- func (p *TicketListPage) Update()
- type TicketShowPage
- func (p *TicketShowPage) ActiveTicketId() string
- func (p *TicketShowPage) Create()
- func (p *TicketShowPage) EditTicket()
- func (p *TicketShowPage) GoBack()
- func (p *TicketShowPage) Id() string
- func (p *TicketShowPage) NextPara()
- func (p *TicketShowPage) NextTicket()
- func (p *TicketShowPage) PrevTicket()
- func (p *TicketShowPage) PreviousPara()
- func (p *TicketShowPage) Refresh()
- func (p *TicketShowPage) Search()
- func (p *TicketShowPage) SelectItem()
- func (p *TicketShowPage) Update()
Constants ¶
View Source
const LOG_MODULE = "jiraui"
View Source
const (
VERSION = "0.4.1"
)
Variables ¶
This section is empty.
Functions ¶
func FetchJiraTicket ¶
func HelpTextAsStrings ¶
func JiraQueryAsStrings ¶
func JiraTicketAsStrings ¶
func RunExternalCommand ¶
Types ¶
type BaseInputBox ¶
type BaseInputBox struct { EditBox // contains filtered or unexported fields }
func (*BaseInputBox) Create ¶
func (p *BaseInputBox) Create()
func (*BaseInputBox) Id ¶
func (p *BaseInputBox) Id() string
func (*BaseInputBox) Update ¶
func (p *BaseInputBox) Update()
type BaseListPage ¶
type BaseListPage struct { ActiveSearch Search // contains filtered or unexported fields }
func (*BaseListPage) BottomOfPage ¶
func (p *BaseListPage) BottomOfPage()
func (*BaseListPage) Create ¶
func (p *BaseListPage) Create()
func (*BaseListPage) Id ¶
func (p *BaseListPage) Id() string
func (*BaseListPage) IsPopulated ¶
func (p *BaseListPage) IsPopulated() bool
func (*BaseListPage) NextLine ¶
func (p *BaseListPage) NextLine(n int)
func (*BaseListPage) NextPage ¶
func (p *BaseListPage) NextPage()
func (*BaseListPage) NextPara ¶
func (p *BaseListPage) NextPara()
func (*BaseListPage) PageLines ¶
func (p *BaseListPage) PageLines() int
func (*BaseListPage) PreviousLine ¶
func (p *BaseListPage) PreviousLine(n int)
func (*BaseListPage) PreviousPage ¶
func (p *BaseListPage) PreviousPage()
func (*BaseListPage) PreviousPara ¶
func (p *BaseListPage) PreviousPara()
func (*BaseListPage) Refresh ¶
func (p *BaseListPage) Refresh()
func (*BaseListPage) SetSearch ¶
func (p *BaseListPage) SetSearch(searchCommand string)
func (*BaseListPage) TopOfPage ¶
func (p *BaseListPage) TopOfPage()
func (*BaseListPage) Update ¶
func (p *BaseListPage) Update()
type CommandBar ¶
type CommandBar struct { EditBox // contains filtered or unexported fields }
func (*CommandBar) Create ¶
func (p *CommandBar) Create()
func (*CommandBar) NextCommand ¶
func (p *CommandBar) NextCommand()
func (*CommandBar) PreviousCommand ¶
func (p *CommandBar) PreviousCommand()
func (*CommandBar) Reset ¶
func (p *CommandBar) Reset()
func (*CommandBar) Submit ¶
func (p *CommandBar) Submit()
func (*CommandBar) Update ¶
func (p *CommandBar) Update()
type CommandBarFragment ¶
type CommandBarFragment struct {
// contains filtered or unexported fields
}
func (*CommandBarFragment) CommandBar ¶
func (p *CommandBarFragment) CommandBar() *CommandBar
func (*CommandBarFragment) CommandMode ¶
func (p *CommandBarFragment) CommandMode() bool
func (*CommandBarFragment) ExecuteCommand ¶
func (p *CommandBarFragment) ExecuteCommand()
func (*CommandBarFragment) SetCommandMode ¶
func (p *CommandBarFragment) SetCommandMode(mode bool)
type CommandBoxer ¶
type CommandBoxer interface { SetCommandMode(bool) ExecuteCommand() CommandMode() bool CommandBar() *CommandBar Update() }
type EditBox ¶
type EditBox struct {
// contains filtered or unexported fields
}
func (*EditBox) DeleteRuneBackward ¶
func (eb *EditBox) DeleteRuneBackward()
func (*EditBox) InsertRune ¶
func (*EditBox) MoveCursorOneRuneBackward ¶
func (eb *EditBox) MoveCursorOneRuneBackward()
func (*EditBox) MoveCursorOneRuneForward ¶
func (eb *EditBox) MoveCursorOneRuneForward()
func (*EditBox) MoveCursorTo ¶
func (*EditBox) MoveCursorToEnd ¶
func (eb *EditBox) MoveCursorToEnd()
func (*EditBox) RuneBeforeCursor ¶
func (*EditBox) RuneUnderCursor ¶
type EditPager ¶
type EditPager interface { DeleteRuneBackward() InsertRune(r rune) Update() Create() }
type HelpPage ¶
type HelpPage struct { BaseListPage CommandBarFragment StatusBarFragment }
type ItemSelecter ¶
type ItemSelecter interface {
SelectItem()
}
type LabelListPage ¶
type LabelListPage struct { BaseListPage CommandBarFragment StatusBarFragment ActiveQuery Query // contains filtered or unexported fields }
func (*LabelListPage) Create ¶
func (p *LabelListPage) Create()
func (*LabelListPage) GoBack ¶
func (p *LabelListPage) GoBack()
func (*LabelListPage) Search ¶
func (p *LabelListPage) Search()
func (*LabelListPage) SelectItem ¶
func (p *LabelListPage) SelectItem()
func (*LabelListPage) Update ¶
func (p *LabelListPage) Update()
type NextTicketer ¶
type NextTicketer interface {
NextTicket()
}
type PasswordInputBox ¶
type PasswordInputBox struct {
BaseInputBox
}
func (*PasswordInputBox) Create ¶
func (p *PasswordInputBox) Create()
func (*PasswordInputBox) Update ¶
func (p *PasswordInputBox) Update()
type PrevTicketer ¶
type PrevTicketer interface {
PrevTicket()
}
type QueryPage ¶
type QueryPage struct { BaseListPage CommandBarFragment StatusBarFragment // contains filtered or unexported fields }
func (*QueryPage) IsPopulated ¶
func (*QueryPage) PreviousPara ¶
func (p *QueryPage) PreviousPara()
func (*QueryPage) SelectItem ¶
func (p *QueryPage) SelectItem()
func (*QueryPage) SelectedQuery ¶
type ScrollableList ¶
type ScrollableList struct { ui.Block // The items in the list Items []string // The window's offset relative to the start of `Items` Offset int // The foreground color for non-cursor items ItemFgColor ui.Attribute // The background color for non-cursor items ItemBgColor ui.Attribute // The foreground color for the cursor CursorFgColor ui.Attribute // The background color for the cursor CursorBgColor ui.Attribute // The position of the cursor relative to the start of `Items` Cursor int }
A scrollable list with a cursor. To "deactivate" the cursor, just make the cursor colors the same as the item colors.
func NewScrollableList ¶
func NewScrollableList() *ScrollableList
NewScrollableList returns a new *ScrollableList with current theme.
func (*ScrollableList) Buffer ¶
func (sl *ScrollableList) Buffer() ui.Buffer
Implements the termui.Bufferer interface
func (*ScrollableList) CursorDown ¶
func (sl *ScrollableList) CursorDown()
Move the cursor down one row; moving the cursor out of the window will cause scrolling.
func (*ScrollableList) CursorDownLines ¶
func (sl *ScrollableList) CursorDownLines(n int)
func (*ScrollableList) CursorUp ¶
func (sl *ScrollableList) CursorUp()
Move the cursor up one row; moving the cursor out of the window will cause scrolling.
func (*ScrollableList) CursorUpLines ¶
func (sl *ScrollableList) CursorUpLines(n int)
func (*ScrollableList) PageDown ¶
func (sl *ScrollableList) PageDown()
Move the window down one frame; this will move the cursor as well.
func (*ScrollableList) PageUp ¶
func (sl *ScrollableList) PageUp()
Move the window up one frame; this will move the cursor as well.
func (*ScrollableList) ScrollDown ¶
func (sl *ScrollableList) ScrollDown()
Move the window down one row
func (*ScrollableList) ScrollToBottom ¶
func (sl *ScrollableList) ScrollToBottom()
Scroll to the bottom of the list
func (*ScrollableList) ScrollToTop ¶
func (sl *ScrollableList) ScrollToTop()
Scroll to the top of the list
func (*ScrollableList) SetCursorLine ¶
func (sl *ScrollableList) SetCursorLine(n int)
func (*ScrollableList) SilentCursorDownLines ¶
func (sl *ScrollableList) SilentCursorDownLines(n int)
func (*ScrollableList) SilentCursorUpLines ¶
func (sl *ScrollableList) SilentCursorUpLines(n int)
type SortOrderPage ¶
type SortOrderPage struct { BaseListPage // contains filtered or unexported fields }
func (*SortOrderPage) Create ¶
func (p *SortOrderPage) Create()
func (*SortOrderPage) IsPopulated ¶
func (p *SortOrderPage) IsPopulated() bool
func (*SortOrderPage) NextPara ¶
func (p *SortOrderPage) NextPara()
func (*SortOrderPage) PreviousPara ¶
func (p *SortOrderPage) PreviousPara()
func (*SortOrderPage) Refresh ¶
func (p *SortOrderPage) Refresh()
func (*SortOrderPage) SelectItem ¶
func (p *SortOrderPage) SelectItem()
func (*SortOrderPage) SelectedSort ¶
func (p *SortOrderPage) SelectedSort() Sort
func (*SortOrderPage) Update ¶
func (p *SortOrderPage) Update()
type StatusBar ¶
type StatusBar struct {
// contains filtered or unexported fields
}
func (*StatusBar) StatusLines ¶
type StatusBarFragment ¶
type StatusBarFragment struct {
// contains filtered or unexported fields
}
type TicketCommander ¶
type TicketCommander interface { ActiveTicketId() string Refresh() }
type TicketCommenter ¶
type TicketCommenter interface {
CommentTicket()
}
type TicketEditer ¶
type TicketEditer interface {
EditTicket()
}
type TicketListPage ¶
type TicketListPage struct { BaseListPage CommandBarFragment StatusBarFragment ActiveQuery Query ActiveSort Sort }
func (*TicketListPage) ActiveTicketId ¶
func (p *TicketListPage) ActiveTicketId() string
func (*TicketListPage) Create ¶
func (p *TicketListPage) Create()
func (*TicketListPage) EditTicket ¶
func (p *TicketListPage) EditTicket()
func (*TicketListPage) GetSelectedTicketId ¶
func (p *TicketListPage) GetSelectedTicketId() string
func (*TicketListPage) GoBack ¶
func (p *TicketListPage) GoBack()
func (*TicketListPage) Refresh ¶
func (p *TicketListPage) Refresh()
func (*TicketListPage) Search ¶
func (p *TicketListPage) Search()
func (*TicketListPage) SelectItem ¶
func (p *TicketListPage) SelectItem()
func (*TicketListPage) Update ¶
func (p *TicketListPage) Update()
type TicketShowPage ¶
type TicketShowPage struct { BaseListPage CommandBarFragment StatusBarFragment MaxWrapWidth uint TicketId string Template string TicketTrail []*TicketShowPage // previously viewed tickets in drill-down WrapWidth uint // contains filtered or unexported fields }
func (*TicketShowPage) ActiveTicketId ¶
func (p *TicketShowPage) ActiveTicketId() string
func (*TicketShowPage) Create ¶
func (p *TicketShowPage) Create()
func (*TicketShowPage) EditTicket ¶
func (p *TicketShowPage) EditTicket()
func (*TicketShowPage) GoBack ¶
func (p *TicketShowPage) GoBack()
func (*TicketShowPage) Id ¶
func (p *TicketShowPage) Id() string
func (*TicketShowPage) NextPara ¶
func (p *TicketShowPage) NextPara()
func (*TicketShowPage) NextTicket ¶
func (p *TicketShowPage) NextTicket()
func (*TicketShowPage) PrevTicket ¶
func (p *TicketShowPage) PrevTicket()
func (*TicketShowPage) PreviousPara ¶
func (p *TicketShowPage) PreviousPara()
func (*TicketShowPage) Refresh ¶
func (p *TicketShowPage) Refresh()
func (*TicketShowPage) Search ¶
func (p *TicketShowPage) Search()
func (*TicketShowPage) SelectItem ¶
func (p *TicketShowPage) SelectItem()
func (*TicketShowPage) Update ¶
func (p *TicketShowPage) Update()
Source Files ¶
- base_input_box.go
- base_list_page.go
- command_bar.go
- command_bar_fragment.go
- editbox.go
- help_page.go
- label_list_page.go
- password_input_box.go
- query_list_page.go
- run.go
- scrollablelist.go
- sort_order_page.go
- sorted_map.go
- status_bar.go
- status_bar_fragment.go
- templates.go
- ticket_list_page.go
- ticket_show_page.go
- ui_controls.go
- utils.go
- version.go
Click to show internal directories.
Click to hide internal directories.