Documentation
¶
Index ¶
- Constants
- func GetFetchState(db *sql.DB, project string) (*time.Time, error)
- func InitDB(config *Config) (*sql.DB, error)
- func StoreCommits(db *sql.DB, commits []*Commit) error
- func UpdateCommitState(db *sql.DB, project, hash string, state CommitState) error
- func UpdateFetchState(db *sql.DB, project string, t *time.Time) error
- func UpdateFromDB(db *sql.DB, ui *DeckardUI) error
- func UpdateFromRepo(ui *DeckardUI)
- type Commit
- type CommitState
- type Config
- type ConfigProject
- type DeckardUI
- type Diff
- type NumStat
Constants ¶
View Source
const ( STATE_NEW = "new" STATE_REVIEWED = "rev" )
View Source
const SelectionMarker = "sel"
Variables ¶
This section is empty.
Functions ¶
func UpdateCommitState ¶
func UpdateCommitState(db *sql.DB, project, hash string, state CommitState) error
func UpdateFromRepo ¶
func UpdateFromRepo(ui *DeckardUI)
RepoUpdate refreshes all repo based resources after the UI has been started.
Types ¶
type CommitState ¶
type CommitState string
type Config ¶
type Config struct {
CodeFolder string `toml:"code_folder"`
Projects map[string]ConfigProject `toml:"project"`
}
func LoadConfig ¶
TODO Create config with project data and render them on the screen in the top bar
type ConfigProject ¶
type DeckardUI ¶
type DeckardUI struct {
// contains filtered or unexported fields
}
func (*DeckardUI) AddCommits ¶
func (*DeckardUI) ClearStatus ¶
func (ui *DeckardUI) ClearStatus()
func (*DeckardUI) MarkAsReviewed ¶
func (*DeckardUI) SelectProject ¶
func (*DeckardUI) UpdateStatus ¶
TODO Render spinner (optional parameter)
Click to show internal directories.
Click to hide internal directories.
