1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-03-05 15:15:49 +02:00

WIP updater package

This commit is contained in:
Jesse Duffield 2018-08-18 19:54:44 +10:00
parent 6473e5ca3c
commit 13ac1d151a

26
pkg/updates/updates.go Normal file
View File

@ -0,0 +1,26 @@
package updates
// Update checks for updates and does updates
type Update struct {
LastChecked string
}
// Updater implements the check and update methods
type Updater interface {
Check()
Update()
}
// NewUpdater creates a new updater
func NewUpdater() *Update {
update := &Update{
LastChecked: "today",
}
return update
}
// Check checks if there is an available update
func (u *Update) Check() {
}