Compare commits
No commits in common. "main" and "009-clean-up" have entirely different histories.
main
...
009-clean-
1 changed files with 1 additions and 9 deletions
10
main.go
10
main.go
|
@ -1,7 +1,5 @@
|
|||
package main
|
||||
|
||||
// Testing out tea; really, git and ssh
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io/fs"
|
||||
|
@ -84,10 +82,6 @@ func initialModel() model {
|
|||
displayString: "newsboat",
|
||||
command: exec.Command("xterm", "-maximized", "-e", "newsboat"),
|
||||
},
|
||||
commandChoice{
|
||||
displayString: "w3m",
|
||||
command: exec.Command("xterm", "-maximized", "-e", "w3m", "https://languagehat.com/"),
|
||||
},
|
||||
),
|
||||
selected: make(map[int]struct{}),
|
||||
}
|
||||
|
@ -178,11 +172,9 @@ func main() {
|
|||
if logfilePath == "" {
|
||||
logfilePath = fmt.Sprintf("/tmp/%s_breakfast.log", time.Now().Local().Format("20060102150405-0700"))
|
||||
}
|
||||
f, err := tea.LogToFile(logfilePath, "DEBUG")
|
||||
if err != nil {
|
||||
if _, err := tea.LogToFile(logfilePath, "DEBUG"); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
defer f.Close()
|
||||
|
||||
p := tea.NewProgram(initialModel())
|
||||
if err := p.Start(); err != nil {
|
||||
|
|
Loading…
Reference in a new issue