Skip to content

feat(cli): add update, prune, env, --json and generate - #40

Merged
otnc merged 1 commit into
mainfrom
feat/cli
Aug 24, 2026
Merged

otnc merged 1 commit into
mainfrom
feat/cli

Conversation

@otnc

@otnc otnc commented Aug 24, 2026

Copy link
Copy Markdown
Member

What does this change?

  • miq update applies what outdated only reports: reinstalls Twemoji clean when a newer release exists, and re-downloads (then prunes) any outdated font family. Never touches the miq install itself — that always prints the command to run by hand.
  • miq prune deletes stale-version font files left behind after an update, keeping the newest per family.
  • miq env (alias doctor) reports resolved storage paths, whether they're writable, and whether the hosts miq talks to are reachable.
  • ls/search/outdated/env gain --json, for scripts and CI.
  • miq generate (alias render) generates a quote image from flags (text/avatar/username/displayName/watermark/theme/scale/format/quality) and writes it to disk — the CLI's own thin wrapper around MiQ.

Checklist

  • npm run ci passes (Biome lint and format)
  • npm run typecheck passes
  • npm run test passes
  • npm run build && npm run check:build passes, if the change touches
    exports, entry points or dependencies
  • Tests cover the change
  • README updated, if the public API changed

- `miq update` applies what `outdated` only reports: reinstalls Twemoji
  clean when a newer release exists, and re-downloads (then prunes) any
  outdated font family. Never touches the miq install itself — that always
  prints the command to run by hand.
- `miq prune` deletes stale-version font files left behind after an update,
  keeping the newest per family.
- `miq env` (alias `doctor`) reports resolved storage paths, whether
  they're writable, and whether the hosts miq talks to are reachable.
- `ls`/`search`/`outdated`/`env` gain `--json`, for scripts and CI.
- `miq generate` (alias `render`) generates a quote image from flags
  (text/avatar/username/displayName/watermark/theme/scale/format/quality)
  and writes it to disk — the CLI's own thin wrapper around `MiQ`.
@otnc otnc self-assigned this Aug 24, 2026
@otnc
otnc merged commit e30f33e into main Aug 24, 2026
7 checks passed
@otnc
otnc deleted the feat/cli branch August 24, 2026 04:38
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.

1 participant