-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
302 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package util | ||
|
||
// Keys returns the keys of a map | ||
func Keys[T comparable, U any](m map[T]U) []T { | ||
keys := make([]T, 0, len(m)) | ||
for k := range m { | ||
keys = append(keys, k) | ||
} | ||
return keys | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// Package screen provides difference screens for the tui | ||
package screen | ||
|
||
import ( | ||
tea "github.com/charmbracelet/bubbletea" | ||
"github.com/zeusWPI/scc/internal/pkg/db" | ||
) | ||
|
||
// Cammie represents the cammie screen | ||
type Cammie struct { | ||
db *db.DB | ||
} | ||
|
||
// NewCammie creates a new cammie screen | ||
func NewCammie(db *db.DB) tea.Model { | ||
return &Cammie{db: db} | ||
} | ||
|
||
// Init initializes the cammie screen | ||
func (c *Cammie) Init() tea.Cmd { | ||
return nil | ||
} | ||
|
||
// Update updates the cammie screen | ||
func (c *Cammie) Update(_ tea.Msg) (tea.Model, tea.Cmd) { | ||
return c, nil | ||
} | ||
|
||
// View returns the cammie screen view | ||
func (c *Cammie) View() string { | ||
return "" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.