Documentation ¶
Index ¶
- func AddItemToSelect(item selectItem)
- func ApplyLogOut(log LogOutput)
- func ClearSelectItems()
- func CreateCnCmd(shell *ishell.Shell)
- func CreateDebugLevelCmd(shell *ishell.Shell)
- func CreateDefaultComands(shell *ishell.Shell)
- func CreateMenuCommands(shell *ishell.Shell)
- func CreateRunCommands(shell *ishell.Shell) bool
- func CreateWsCmd(shell *ishell.Shell)
- func RunIShell()
- func TextInput(label string, placeHolder string, limit int, width int) (string, error)
- func WaitForResponse()
- type CmdMenuItem
- type LogOutput
- func (l *LogOutput) Add(s string)
- func (l *LogOutput) Clear()
- func (l *LogOutput) GetBuffer() []string
- func (l *LogOutput) GetMax() int
- func (l *LogOutput) GetSize() int
- func (l *LogOutput) Init() tea.Cmd
- func (l *LogOutput) SetMax(max int)
- func (l *LogOutput) SetSize(maxWidth, maxRowsShown int)
- func (l *LogOutput) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (l *LogOutput) View() string
- type RunMenuDelegate
- type RundCmd
- type TextInputModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddItemToSelect ¶
func AddItemToSelect(item selectItem)
func ApplyLogOut ¶
func ApplyLogOut(log LogOutput)
func ClearSelectItems ¶
func ClearSelectItems()
func CreateCnCmd ¶
func CreateDebugLevelCmd ¶
func CreateDefaultComands ¶
CreateDefaultComands simple comands they just used as command. - lint - version
func CreateMenuCommands ¶
func CreateRunCommands ¶
CreateRunCommands to display any run target. without an targetname, we will display a pick list
func CreateWsCmd ¶
CreateWsCmd command to switch the workspaces
func WaitForResponse ¶
func WaitForResponse()
Types ¶
type CmdMenuItem ¶
type CmdMenuItem struct { Name string Running bool Selected bool RunCount int UpdateCount int Blocked bool HaveError bool }
func (CmdMenuItem) Description ¶
func (i CmdMenuItem) Description() string
func (CmdMenuItem) FilterValue ¶
func (i CmdMenuItem) FilterValue() string
type LogOutput ¶
type LogOutput struct {
// contains filtered or unexported fields
}
var (
UiLogger LogOutput = *NewAutoSizeLogOutput()
)
func NewAutoSizeLogOutput ¶
func NewAutoSizeLogOutput() *LogOutput
func NewLogOutput ¶
type RunMenuDelegate ¶
type RunMenuDelegate struct{}
create oure own delegate to render the menu items
func (RunMenuDelegate) Height ¶
func (d RunMenuDelegate) Height() int
func (RunMenuDelegate) Spacing ¶
func (d RunMenuDelegate) Spacing() int
type RundCmd ¶
type RundCmd struct {
// contains filtered or unexported fields
}
func NewRunMenu ¶
func (RundCmd) GetSelectedIndex ¶
type TextInputModel ¶
func InitTextInput ¶
func InitTextInput(placeHolder string, limit int, width int) TextInputModel
func (*TextInputModel) GetValue ¶
func (m *TextInputModel) GetValue() string
func (*TextInputModel) Init ¶
func (m *TextInputModel) Init() tea.Cmd
func (*TextInputModel) View ¶
func (m *TextInputModel) View() string
Click to show internal directories.
Click to hide internal directories.