From 5a939fcb11310177d1cc21a75629289680a1e4f4 Mon Sep 17 00:00:00 2001 From: Wojciech Trocki Date: Mon, 11 Apr 2022 15:11:35 +0100 Subject: [PATCH] fix: add comment --- pkg/core/cmdutil/selfupdate.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/core/cmdutil/selfupdate.go b/pkg/core/cmdutil/selfupdate.go index 4c31cc2ca..ae18d18a6 100644 --- a/pkg/core/cmdutil/selfupdate.go +++ b/pkg/core/cmdutil/selfupdate.go @@ -48,6 +48,7 @@ func DoSelfUpdate(f *factory.Factory) (bool, error) { } +// DoSelfUpdate checks for updates once per day and prompts the user to update if there is a newer version available func DoSelfUpdateOnceADay(f *factory.Factory) (bool, error) { if !f.IOStreams.CanPrompt() { // Do not prompt if we are not in interactive mode