Skip to content

feat: add any-buddy share command#25

Merged
cpaczek merged 1 commit into
cpaczek:mainfrom
Co-Messi:feat/share-command
Apr 3, 2026
Merged

feat: add any-buddy share command#25
cpaczek merged 1 commit into
cpaczek:mainfrom
Co-Messi:feat/share-command

Conversation

@Co-Messi
Copy link
Copy Markdown
Contributor

@Co-Messi Co-Messi commented Apr 3, 2026

Summary

  • New any-buddy share command renders the current active pet as a boxed ASCII card and copies it to the clipboard automatically
  • Works on macOS (pbcopy), Windows (clip), and Linux (xclip / xsel)
  • Card includes: companion name (if hatched), species, rarity stars, shiny flag, eyes/hat, full ASCII sprite, all five stat bars with numeric values, and a credit link

Example

╭──────────────────────────────────────────────────────╮
│  Capybara  ·  dragon ★★★★★  ✨ shiny                  │
│  rarity: legendary   eyes: ✦   hat: crown            │
│                                                      │
│     \^^^/                                            │
│    /^\  /^\                                          │
│   <  ✦  ✦  >                                         │
│   (   ~~   )                                         │
│    `-vvvv-´                                          │
│                                                      │
│  WISDOM     ██████████  100                          │
│  DEBUGGING  ████████░░  81                           │
│  CHAOS      ██████░░░░  59                           │
│  PATIENCE   ██████░░░░  57                           │
│  SNARK      █████░░░░░  45                           │
│                                                      │
│  made with any-buddy — github.com/cpaczek/any-buddy  │
╰──────────────────────────────────────────────────────╯
Copied to clipboard!

Color-coded in the terminal by rarity (legendary = yellow, epic = magenta, etc.). The card copied to clipboard is plain text so it pastes cleanly everywhere.

Test plan

  • any-buddy share — card displays and "Copied to clipboard!" confirms
  • Paste from clipboard — plain ASCII card, no escape codes
  • Falls back gracefully when no clipboard tool is present (shows "Copy the card above" hint)
  • pnpm test — all 203 tests pass

Renders the current active pet as a boxed ASCII card and copies it
to the clipboard automatically (pbcopy on macOS, clip on Windows,
xclip/xsel on Linux).

The card includes: companion name (if hatched), species, rarity stars,
shiny flag, eyes/hat attributes, the full ASCII sprite, all five stat
bars with numeric values, and a credit link.

  any-buddy share

Example output:
  ╭──────────────────────────────────────────────────────╮
  │  Capybara  ·  dragon ★★★★★                           │
  │  rarity: legendary   eyes: ✦   hat: crown            │
  │                                                      │
  │     \^^^/                                            │
  │  ...sprite...                                        │
  │                                                      │
  │  WISDOM     ██████████  100                          │
  │  ...stats...                                         │
  │                                                      │
  │  made with any-buddy — github.com/cpaczek/any-buddy  │
  ╰──────────────────────────────────────────────────────╯
  Copied to clipboard!

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@cpaczek cpaczek merged commit c5f54e2 into cpaczek:main Apr 3, 2026
7 checks passed
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