diff options
| author | Fuwn <[email protected]> | 2024-10-12 13:59:15 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-10-12 13:59:15 +0000 |
| commit | 090157a0b96da9e048ddf0ba306f8ad9c46a5b2d (patch) | |
| tree | da5dd93d423d2eaa81860b18545e3ae1e025c609 | |
| parent | feat(yae): extra log level flags (diff) | |
| download | yae-090157a0b96da9e048ddf0ba306f8ad9c46a5b2d.tar.xz yae-090157a0b96da9e048ddf0ba306f8ad9c46a5b2d.zip | |
feat(source): extra output logs
| -rw-r--r-- | source.go | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -21,10 +21,18 @@ type Source struct { } func (source *Source) Update(sources *Sources, name string, show bool, force bool, forcePinned bool) (bool, error) { + if show { + log.Infof("checking %s", name) + } + updated := false if !sources.Exists(name) { - return updated, fmt.Errorf("source does not exist") + if show { + log.Warnf("skipped %s: source does not exist", name) + } + + return updated, nil } if source.Pinned && !forcePinned { @@ -36,6 +44,8 @@ func (source *Source) Update(sources *Sources, name string, show bool, force boo } if source.Type == "git" { + log.Debugf("checking %s: remote git tag", name) + tag, err := source.fetchLatestGitTag() if err != nil { |