From b813a818fef769081b39b08c8e7ad62b1f9d4829 Mon Sep 17 00:00:00 2001 From: Tai Groot Date: Tue, 21 Feb 2023 22:43:09 -0800 Subject: [PATCH] add cursor and struct for settings --- cmd/cli/cli.go | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/cmd/cli/cli.go b/cmd/cli/cli.go index ff885db..fb1a899 100644 --- a/cmd/cli/cli.go +++ b/cmd/cli/cli.go @@ -21,6 +21,9 @@ const ( settings Cursor = iota graph commitLog + + authors SettingsCursor = iota + repos ) type ( @@ -44,8 +47,15 @@ type ( Repos []string Table table.Model } - Settings struct{} - Graph struct { + SettingsCursor int + Settings struct { + AllAuthors []string + SelectedAuthors []string + AllRepos []string + SelectedRepos []string + cursor SettingsCursor + } + Graph struct { Selected int Year int Repos []string