Skip to content

fix: check-update command output to StdErr

Kai Armstrong requested to merge phikai-stderr-update into main

Description

The check-update command currently outputs to StdOut. When you've configured glab to always check for updates in the config, then the results of check-update are put in to StdOut at the same time as whatever command you've executed is. This makes it impossible to continue processing information as the update information is "in the way".

This changes the check-update command to use StdErr which is more inline with diagnostic style information for the output.

Related Issues

Resolves #1230 (closed)

How has this been tested?

I built the binary and tested the check-update command, I've also updated the test to match the change in output channel.

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation
  • Chore (Related to CI or Packaging to platforms)
Edited by Kai Armstrong

Merge request reports