- Converted Tamarin script language to Risor - Added a "find" and "merge" method to the result set script type. - Added the ability to copy the table of results to the pasteboard by pressing C - Added the -q flag, which will run a query and display the results as a CSV file on the command line - Upgraded Go to 1.21 in Github actions - Fix issue with missing limits - Added the '-where' switch to the mark - Added the 'marked' function to the query expression. - Added a sampled time and count on the right-side of the mode line - Added the 'M' key binding to toggle the marked items - Started working on tab completion for 'sa' and 'da' commands - Added count and sample time to the right-side of the mode line - Added Ctrl+V to the prompt to paste the text of the pasteboard with all whitespace characters trimmed - Fixed failing unit tests
30 lines
747 B
Go
30 lines
747 B
Go
package events
|
|
|
|
import (
|
|
tea "github.com/charmbracelet/bubbletea"
|
|
"github.com/lmika/dynamo-browse/internal/dynamo-browse/services"
|
|
)
|
|
|
|
// Error indicates that an error occurred
|
|
type ErrorMsg error
|
|
|
|
// Message indicates that a message should be shown to the user
|
|
type StatusMsg string
|
|
|
|
type WrappedStatusMsg struct {
|
|
Message StatusMsg
|
|
Next tea.Msg
|
|
}
|
|
|
|
// ModeMessage indicates that the mode should be changed to the following
|
|
type ModeMessage string
|
|
|
|
// PromptForInput indicates that the context is requesting a line of input
|
|
type PromptForInputMsg struct {
|
|
Prompt string
|
|
History services.HistoryProvider
|
|
OnDone func(value string) tea.Msg
|
|
OnCancel func() tea.Msg
|
|
OnTabComplete func(value string) (string, bool)
|
|
}
|