mirror of
https://github.com/charmbracelet/glow
synced 2024-11-10 06:04:18 +00:00
Remove Boba residue
This commit is contained in:
parent
c0ca639f3a
commit
671eade0b5
3 changed files with 4 additions and 7 deletions
1
go.mod
1
go.mod
|
@ -3,7 +3,6 @@ module github.com/charmbracelet/glow
|
|||
go 1.13
|
||||
|
||||
require (
|
||||
github.com/charmbracelet/boba v0.6.3
|
||||
github.com/charmbracelet/bubbles v0.0.0-20200526000837-87c7cd778f80
|
||||
github.com/charmbracelet/bubbletea v0.7.0
|
||||
github.com/charmbracelet/charm v0.5.1
|
||||
|
|
2
go.sum
2
go.sum
|
@ -15,8 +15,6 @@ github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+Ce
|
|||
github.com/calmh/randomart v1.1.0 h1:evl+iwc10LXtHdMZhzLxmsCQVmWnkXs44SbC6Uk0Il8=
|
||||
github.com/calmh/randomart v1.1.0/go.mod h1:DQUbPVyP+7PAs21w/AnfMKG5NioxS3TbZ2F9MSK/jFM=
|
||||
github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc=
|
||||
github.com/charmbracelet/boba v0.6.3 h1:3YisdYQ35tieYXbfpf8acdVN6d1DJHGKZc5kDJNkjg0=
|
||||
github.com/charmbracelet/boba v0.6.3/go.mod h1:9TUvThAOqjXWYZGOrZ4qyluTrmodxb8SqNR81BJluOU=
|
||||
github.com/charmbracelet/bubbles v0.0.0-20200526000837-87c7cd778f80 h1:cfaoL1+tHPABTLEAg831PIFG96teW69Wamz9M025r5M=
|
||||
github.com/charmbracelet/bubbles v0.0.0-20200526000837-87c7cd778f80/go.mod h1:/AeLRFlL2Uf4X7U5LjnswTII6u4maPzMm1+vZfeUJKc=
|
||||
github.com/charmbracelet/bubbletea v0.6.4-0.20200525234836-3b8b011b5a26/go.mod h1:BTzHOUvUlKecQz7ZB8NgPRWi2Z8NRCV04qwyFOfO1Kk=
|
||||
|
|
8
main.go
8
main.go
|
@ -15,7 +15,7 @@ import (
|
|||
"github.com/spf13/cobra"
|
||||
"golang.org/x/crypto/ssh/terminal"
|
||||
|
||||
"github.com/charmbracelet/boba"
|
||||
tea "github.com/charmbracelet/bubbletea"
|
||||
"github.com/charmbracelet/glamour"
|
||||
"github.com/charmbracelet/glow/ui"
|
||||
)
|
||||
|
@ -171,18 +171,18 @@ func executeArg(cmd *cobra.Command, arg string, w io.Writer) error {
|
|||
// Log to a file. For debugging.
|
||||
logToFilePath := os.Getenv("GLOW_LOG_TO_FILE")
|
||||
if logToFilePath != "" {
|
||||
f, err := boba.LogToFile(logToFilePath, "glow")
|
||||
f, err := tea.LogToFile(logToFilePath, "glow")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer f.Close()
|
||||
}
|
||||
|
||||
boba.AltScreen()
|
||||
tea.AltScreen()
|
||||
if err := ui.NewProgram(style).Start(); err != nil {
|
||||
return err
|
||||
}
|
||||
boba.ExitAltScreen()
|
||||
tea.ExitAltScreen()
|
||||
|
||||
fmt.Printf("\n Thanks for using Glow!\n\n")
|
||||
return nil
|
||||
|
|
Loading…
Reference in a new issue