Skip to content

Enable banner by default over stderr#357

Merged
pvdz merged 1 commit intomainfrom
bannermeup
Mar 5, 2025
Merged

Enable banner by default over stderr#357
pvdz merged 1 commit intomainfrom
bannermeup

Conversation

@pvdz
Copy link
Contributor

@pvdz pvdz commented Mar 5, 2025

This enables the Socket ascii art banner at the top of every command and help screen.

It looks roughly like this:

   _____         _       _        /---------------
  |   __|___ ___| |_ ___| |_      | Socket.dev CLI ver 0.14.57:a70bc02:72eb3827:dev
  |__   | . |  _| '_| -_|  _|     | Node: v20.18.2, API token set: 19tED
  |_____|___|___|_,_|___|_|.dev   | Command: `socket`, cwd: ~/socket/socket-cli

This banner contains versioning, login status, command executed (without flags), and the cwd.

This will help us with debugging when people include this in their report.

The banner is emitted over stderr (just like the spinner) and should not interfere with output that's meant to be piped through.

@pvdz pvdz requested a review from jdalton March 5, 2025 12:11
@pvdz pvdz merged commit da8ad6c into main Mar 5, 2025
4 checks passed
@pvdz pvdz deleted the bannermeup branch March 5, 2025 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants