func Update(sous *core.Sous, args []string) { key := "last-update-check" if err := config.Update(); err != nil { cli.Fatal() } config.Set(key, time.Now().Format(time.RFC3339)) cli.Success() }
func checkForUpdates() { cli.Logf("Checking for updates...") if err := config.Update(); err != nil { cli.Logf("Unable to check: %s", err) } }