Add dashboard / description page
This commit is contained in:
5
main.go
5
main.go
@@ -25,6 +25,7 @@ func main() {
|
||||
theme = flag.String("theme", defaults.Theme, "color theme: dark or light")
|
||||
foldResolved = flag.Bool("fold-resolved", defaults.Display.FoldResolved, "start resolved threads folded")
|
||||
listWidth = flag.Int("thread-list-width", defaults.Display.ThreadListWidthPercent, "thread list width as terminal percentage (20-60)")
|
||||
dashboardMode = flag.String("dashboard-mode", defaults.Display.DashboardMode, "dashboard navigation: intermediate or hotkey")
|
||||
pathScroll = flag.Bool("path-scroll", defaults.Paths.Scroll, "scroll truncated paths")
|
||||
pathScrollRate = flag.Duration("path-scroll-interval", defaults.Paths.ScrollInterval.Duration, "path scrolling interval")
|
||||
)
|
||||
@@ -62,6 +63,9 @@ func main() {
|
||||
if visited["thread-list-width"] {
|
||||
config.Display.ThreadListWidthPercent = *listWidth
|
||||
}
|
||||
if visited["dashboard-mode"] {
|
||||
config.Display.DashboardMode = *dashboardMode
|
||||
}
|
||||
if visited["path-scroll"] {
|
||||
config.Paths.Scroll = *pathScroll
|
||||
}
|
||||
@@ -94,6 +98,7 @@ func main() {
|
||||
AppSettings{
|
||||
FoldResolved: config.Display.FoldResolved,
|
||||
ThreadListWidthPercent: config.Display.ThreadListWidthPercent,
|
||||
DashboardMode: config.Display.DashboardMode,
|
||||
PathScroll: config.Paths.Scroll,
|
||||
PathScrollInterval: config.Paths.ScrollInterval.Duration,
|
||||
ThreadStatusOrder: config.Threads.StatusOrder,
|
||||
|
||||
Reference in New Issue
Block a user