Merge branch 'release/v0.5.0' into change-detection

This commit is contained in:
Svilen Markov 2024-05-30 22:55:01 +01:00 committed by GitHub
commit f4f7892123
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
44 changed files with 1428 additions and 177 deletions

View file

@ -19,6 +19,8 @@ func New(widgetType string) (Widget, error) {
switch widgetType {
case "calendar":
return &Calendar{}, nil
case "clock":
return &Clock{}, nil
case "weather":
return &Weather{}, nil
case "bookmarks":
@ -47,6 +49,8 @@ func New(widgetType string) (Widget, error) {
return &ChangeDetection{}, nil
case "repository":
return &Repository{}, nil
case "search":
return &Search{}, nil
default:
return nil, fmt.Errorf("unknown widget type: %s", widgetType)
}