init
This commit is contained in:
27
leak-utils/settings/colors.go
Normal file
27
leak-utils/settings/colors.go
Normal file
@@ -0,0 +1,27 @@
|
||||
package settings
|
||||
|
||||
import (
|
||||
"github.com/charmbracelet/lipgloss/v2"
|
||||
)
|
||||
|
||||
var (
|
||||
purple = lipgloss.Color("99")
|
||||
lightPurple = lipgloss.Color("98")
|
||||
yellow = lipgloss.Color("220")
|
||||
gray = lipgloss.Color("245")
|
||||
lightGray = lipgloss.Color("241")
|
||||
|
||||
Header = lipgloss.NewStyle().Foreground(purple).Bold(true)
|
||||
Accent = lipgloss.NewStyle().Foreground(lightPurple)
|
||||
Base = lipgloss.NewStyle().Foreground(lightGray)
|
||||
Alert = lipgloss.NewStyle().Foreground(yellow).Bold(true)
|
||||
Muted = lipgloss.NewStyle().Foreground(gray)
|
||||
)
|
||||
|
||||
func DisableColors() {
|
||||
Header = lipgloss.NewStyle()
|
||||
Accent = lipgloss.NewStyle()
|
||||
Base = lipgloss.NewStyle()
|
||||
Alert = lipgloss.NewStyle()
|
||||
Muted = lipgloss.NewStyle()
|
||||
}
|
||||
9
leak-utils/settings/settings.go
Normal file
9
leak-utils/settings/settings.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package settings
|
||||
|
||||
import "database/sql"
|
||||
|
||||
type LeakUtils struct {
|
||||
Debug bool
|
||||
Compression string // Compression of the output file (e.g., "SNAPPY", "ZSTD", "NONE" or "")
|
||||
Db *sql.DB
|
||||
}
|
||||
Reference in New Issue
Block a user