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:
parent
6473e5ca3c
commit
13ac1d151a
26
pkg/updates/updates.go
Normal file
26
pkg/updates/updates.go
Normal 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() {
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user