mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-02 02:59:09 -07:00
[codespell]: Fix typos.
This commit is contained in:
committed by
Maas Lalani
parent
741f2d37f0
commit
2d10416631
@@ -40,7 +40,7 @@ func Sequence(cmds ...Cmd) Cmd {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// sequenceMsg is used interally to run the given commands in order.
|
// sequenceMsg is used internally to run the given commands in order.
|
||||||
type sequenceMsg []Cmd
|
type sequenceMsg []Cmd
|
||||||
|
|
||||||
// Every is a command that ticks in sync with the system clock. So, if you
|
// Every is a command that ticks in sync with the system clock. So, if you
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
// An example illustrating how to pipe in data to a Bubble Tea application.
|
// An example illustrating how to pipe in data to a Bubble Tea application.
|
||||||
// Moreso, this serves as proof that Bubble Tea will automatically listen for
|
// More so, this serves as proof that Bubble Tea will automatically listen for
|
||||||
// keystrokes when input is not a TTY, such as when data is piped or redirected
|
// keystrokes when input is not a TTY, such as when data is piped or redirected
|
||||||
// in.
|
// in.
|
||||||
|
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
|||||||
|
|
||||||
case tea.KeyMsg:
|
case tea.KeyMsg:
|
||||||
// Ctrl+c exits. Even with short running programs it's good to have
|
// Ctrl+c exits. Even with short running programs it's good to have
|
||||||
// a quit key, just incase your logic is off. Users will be very
|
// a quit key, just in case your logic is off. Users will be very
|
||||||
// annoyed if they can't exit.
|
// annoyed if they can't exit.
|
||||||
if msg.Type == tea.KeyCtrlC {
|
if msg.Type == tea.KeyCtrlC {
|
||||||
return m, tea.Quit
|
return m, tea.Quit
|
||||||
|
|||||||
Reference in New Issue
Block a user