vultr / vultr-cli

Official command line tool for Vultr services
Apache License 2.0
469 stars 75 forks source link

[BUG] - First run of vultr-cli prints warning #433

Closed kpcyrd closed 4 months ago

kpcyrd commented 4 months ago

Describe the bug

I noticed on the first run of vultr-cli a warning is printed:

Error Reading in file: /home/user/.vultr-cli.yaml

When generating shell completions for packaging this line ends up in the shell completion script.

During this first run an empty file is created at that path, so it's only the first run.

To Reproduce Steps to reproduce the behavior:

  1. rm ~/.vultr-cli.yaml
  2. vultr-cli --help | head

Expected behavior No error is printed (especially not on stdout)

Desktop (please complete the following information where applicable: