mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-16 18:15:03 -07:00
Commands should probably receive the model as an arg, right?
This commit is contained in:
10
examples/go.mod
Normal file
10
examples/go.mod
Normal file
@@ -0,0 +1,10 @@
|
||||
module examples
|
||||
|
||||
go 1.13
|
||||
|
||||
require (
|
||||
github.com/charmbracelet/tea v0.0.0-20200120035228-5156905c3e10
|
||||
github.com/charmbracelet/teaparty v0.0.0-20200118155738-c83a0bee59b9
|
||||
github.com/fogleman/ease v0.0.0-20170301025033-8da417bf1776
|
||||
golang.org/x/sys v0.0.0-20200120151820-655fe14d7479 // indirect
|
||||
)
|
||||
11
examples/go.sum
Normal file
11
examples/go.sum
Normal file
@@ -0,0 +1,11 @@
|
||||
github.com/charmbracelet/tea v0.0.0-20200118154546-df52853f9d94/go.mod h1:lijy1lXOKNwMjBu/jTT/DvR8yE9PhtX2olGFsCz9/Vk=
|
||||
github.com/charmbracelet/tea v0.0.0-20200120035228-5156905c3e10 h1:C8gRihuPFEUON+BsEe4SsKDfHhgZlStosn9YvE+mtjU=
|
||||
github.com/charmbracelet/tea v0.0.0-20200120035228-5156905c3e10/go.mod h1:lijy1lXOKNwMjBu/jTT/DvR8yE9PhtX2olGFsCz9/Vk=
|
||||
github.com/charmbracelet/teaparty v0.0.0-20200118155738-c83a0bee59b9 h1:YQvJgppGVexnzIJ+KJlK9lBYA3+zXfdqZO/5Ngedtb0=
|
||||
github.com/charmbracelet/teaparty v0.0.0-20200118155738-c83a0bee59b9/go.mod h1:z8JWtuxM0oA+dZfi7BkgBW2YGbyOTbWAixFs46W3SK4=
|
||||
github.com/fogleman/ease v0.0.0-20170301025033-8da417bf1776 h1:VRIbnDWRmAh5yBdz+J6yFMF5vso1It6vn+WmM/5l7MA=
|
||||
github.com/fogleman/ease v0.0.0-20170301025033-8da417bf1776/go.mod h1:9wvnDu3YOfxzWM9Cst40msBF1C2UdQgDv962oTxSuMs=
|
||||
github.com/pkg/term v0.0.0-20190109203006-aa71e9d9e942 h1:A7GG7zcGjl3jqAqGPmcNjd/D9hzL95SuoOQAaFNdLU0=
|
||||
github.com/pkg/term v0.0.0-20190109203006-aa71e9d9e942/go.mod h1:eCbImbZ95eXtAUIbLAuAVnBnwf83mjf6QIVH8SHYwqQ=
|
||||
golang.org/x/sys v0.0.0-20200120151820-655fe14d7479 h1:LhLiKguPgZL+Tglay4GhVtfF0kb8cvOJ0dHTCBO8YNI=
|
||||
golang.org/x/sys v0.0.0-20200120151820-655fe14d7479/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
@@ -73,7 +73,7 @@ func view(model tea.Model) string {
|
||||
return fmt.Sprintf("The server said: %d %s", m.Status, http.StatusText(m.Status))
|
||||
}
|
||||
|
||||
func checkServer() tea.Msg {
|
||||
func checkServer(_ tea.Model) tea.Msg {
|
||||
c := &http.Client{
|
||||
Timeout: 10 * time.Second,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user